Fixing block syncing quirks

This commit is contained in:
Kevin Froman 2020-08-25 15:02:13 -05:00
parent a83351a73c
commit 3422ca43ff
7 changed files with 7 additions and 15 deletions

View file

@ -83,9 +83,7 @@ def lookup_blocks_from_communicator(comm_inst):
try:
lastLookupTime = kv.get('dbTimestamps')[peer]
except KeyError:
lastLookupTime = epoch.get_epoch() - \
config.get("general.max_block_age",
onionrvalues.DEFAULT_EXPIRE)
lastLookupTime = epoch.get_epoch() - onionrvalues.DEFAULT_EXPIRE
listLookupCommand += '?date=%s' % (lastLookupTime,)
try:
newBlocks = peeraction.peer_action(