Adds last_known_block to Watcher and stores last block on db on fresh bootstrap Watcher and Responder

This commit is contained in:
Sergi Delgado Segura
2020-04-01 10:56:59 +02:00
parent 8991f71148
commit 75eebf80cd
2 changed files with 9 additions and 0 deletions

View File

@@ -259,6 +259,7 @@ class Responder:
# Distinguish fresh bootstraps from bootstraps from db
if self.last_known_block is None:
self.last_known_block = self.block_processor.get_best_block_hash()
self.db_manager.store_last_block_hash_responder(self.last_known_block)
while True:
block_hash = self.block_queue.get()