log what block is being uploaded by hash

This commit is contained in:
Kevin Froman 2019-08-12 18:49:16 -05:00
parent 56dc2e0ce7
commit 9601a3d072

View File

@ -44,7 +44,7 @@ def upload_blocks_from_communicator(comm_inst):
url = 'http://' + peer + '/upload' url = 'http://' + peer + '/upload'
data = {'block': block.Block(bl).getRaw()} data = {'block': block.Block(bl).getRaw()}
proxyType = proxypicker.pick_proxy(peer) proxyType = proxypicker.pick_proxy(peer)
logger.info("Uploading block to " + peer, terminal=True) logger.info("Uploading block %s to %s" % (bl[:8], peer), terminal=True)
resp = basicrequests.do_post_request(url, data=data, proxyType=proxyType) resp = basicrequests.do_post_request(url, data=data, proxyType=proxyType)
if not resp == False: if not resp == False:
if resp == 'success': if resp == 'success':