Пример #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