don't set lookupblocks timestamp unless they actually have new blocks
parent
63e676ed6f
commit
d6422801a2
|
@ -105,6 +105,8 @@ def lookup_blocks_from_communicator(comm_inst):
|
||||||
# add blocks to download queue
|
# add blocks to download queue
|
||||||
comm_inst.blockQueue[i] = [peer]
|
comm_inst.blockQueue[i] = [peer]
|
||||||
new_block_count += 1
|
new_block_count += 1
|
||||||
|
comm_inst.dbTimestamps[peer] = \
|
||||||
|
epoch.get_rounded_epoch(roundS=60)
|
||||||
else:
|
else:
|
||||||
if peer not in comm_inst.blockQueue[i]:
|
if peer not in comm_inst.blockQueue[i]:
|
||||||
if len(comm_inst.blockQueue[i]) < 10:
|
if len(comm_inst.blockQueue[i]) < 10:
|
||||||
|
|
Loading…
Reference in New Issue