def init():
    reader = csv.reader(open('./blockdata/gas_csv.csv', 'r'))
    istitle = True
    for row in reader:
        if istitle:
            istitle = False
            continue
        blockno = int(row[0])
        gas = int(row[1])
        gasused[blockno] = gas
    reader = csv.reader(open('./blockdata/sibling_csv.csv', 'r'))
    istitle = True
    for row in reader:
        if istitle:
            istitle = False
            continue
        blockno = int(row[0])
        cnt = int(row[1])
        sibling_cnt[blockno] = cnt
    reader = csv.reader(open('./blockdata/timestamp_csv.csv', 'r'))
    istitle = True
    for row in reader:
        if istitle:
            istitle = False
            continue
        blockno = int(row[0])
        ts = int(row[1])
        timestamp[blockno] = ts
def init():
    reader = csv.reader(open('./blockdata/gas_csv.csv', 'r'))
    istitle = True
    for row in reader:
        if istitle:
            istitle = False
            continue
        blockno = int(row[0])
        gas = int(row[1])
        gasused[blockno] = gas
    reader = csv.reader(open('./blockdata/sibling_csv.csv', 'r'))
    istitle = True
    for row in reader:
        if istitle:
            istitle = False
            continue
        blockno = int(row[0])
        cnt = int(row[1])
        sibling_cnt[blockno] = cnt
    reader = csv.reader(open('./blockdata/timestamp_csv.csv', 'r'))
    istitle = True
    for row in reader:
        if istitle:
            istitle = False
            continue
        blockno = int(row[0])
        ts = int(row[1])
        timestamp[blockno] = ts