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
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
def getLocalBlockCount(): height = neoapi.getCurrentHeight(LOCAL_SRV) logging.info('[getLocalBlockCount] localheight: {0}'.format(height)) return height
def getLocalBlockCount(): height = neoapi.getCurrentHeight(LOCAL_SRV) logging.info('[{0}] getLocalBlockCount localheight: {1}'.format(type, height)) return height