Fix block downloading for shared state
This commit is contained in:
parent
78e533952c
commit
9f1f1435ce
@ -89,7 +89,7 @@ def download_blocks_from_communicator(comm_inst: "OnionrCommunicatorDaemon"):
|
||||
logger.info(
|
||||
f"Attempting to download %s from {peerUsed}..." % (blockHash[:12],))
|
||||
content = peeraction.peer_action(
|
||||
comm_inst, peerUsed,
|
||||
comm_inst.shared_state, peerUsed,
|
||||
'getdata/' + blockHash,
|
||||
max_resp_size=3000000) # block content from random peer
|
||||
|
||||
|
@ -89,7 +89,7 @@ def lookup_blocks_from_communicator(comm_inst):
|
||||
listLookupCommand += '?date=%s' % (lastLookupTime,)
|
||||
try:
|
||||
newBlocks = peeraction.peer_action(
|
||||
comm_inst,
|
||||
comm_inst.shared_state,
|
||||
peer, listLookupCommand) # get list of new block hashes
|
||||
except Exception as error:
|
||||
logger.warn(
|
||||
|
Loading…
Reference in New Issue
Block a user