示例#1
0
def getBestBlockCount():
    maxHeight = -1
    for seed in config['seeds']:
        height = neoapi.getCurrentHeight('http://' + seed)
        if maxHeight < height:
            maxHeight = height
    logging.info('[getBestBlockCount] maxheight: {0}'.format(maxHeight))
    return maxHeight
示例#2
0
def getBestBlockCount():
    maxHeight = -1
    for seed in SEEDS:
        height = neoapi.getCurrentHeight('http://' + seed)
        if maxHeight < height:
            maxHeight = height
    logging.info('[{0}] getBestBlockCount maxheight: {1}'.format(type, maxHeight))
    return maxHeight
示例#3
0
def getLocalBlockCount():
    height = neoapi.getCurrentHeight(LOCAL_SRV)
    logging.info('[getLocalBlockCount] localheight: {0}'.format(height))
    return height
示例#4
0
def getLocalBlockCount():
    height = neoapi.getCurrentHeight(LOCAL_SRV)
    logging.info('[{0}] getLocalBlockCount localheight: {1}'.format(type, height))
    return height