don't set lookupblocks timestamp unless they actually have new blocks

This commit is contained in:
Kevin 2020-06-30 17:09:18 -05:00
parent 63e676ed6f
commit d6422801a2
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ def lookup_blocks_from_communicator(comm_inst):
# add blocks to download queue
comm_inst.blockQueue[i] = [peer]
new_block_count += 1
comm_inst.dbTimestamps[peer] = \
epoch.get_rounded_epoch(roundS=60)
else:
if peer not in comm_inst.blockQueue[i]:
if len(comm_inst.blockQueue[i]) < 10: