mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
Adds last_known_block to Watcher and stores last block on db on fresh bootstrap Watcher and Responder
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user