From d6422801a27fb877ace648a4d92c6dcd6fa0c530 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 30 Jun 2020 17:09:18 -0500 Subject: [PATCH] don't set lookupblocks timestamp unless they actually have new blocks --- src/communicatorutils/lookupblocks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/communicatorutils/lookupblocks.py b/src/communicatorutils/lookupblocks.py index 02714b89..d97be65b 100755 --- a/src/communicatorutils/lookupblocks.py +++ b/src/communicatorutils/lookupblocks.py @@ -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: