def height(index):
    if use_timestamp:
        return (node.getblockheader(node.getblockhash(index))['time'] + TIMESTAMP_WINDOW)
    else:
        return index
def height(index):
    if use_timestamp:
        return (node.getblockheader(node.getblockhash(index))['time'] + TIMESTAMP_WINDOW)
    else:
        return index