Fix a bug that prevented the blockchain to sync

Blocks with reveal transactions that were loaded from disk could not be
distributed to other nodes before. This prevented new nodes with an old
blockchain state from synchronizing the blockchain.

This bug has now been fixed.
This commit is contained in:
2026-03-22 17:47:42 +01:00
parent 1d3cf3e242
commit 0aa58b137b

View File

@@ -515,6 +515,7 @@ class Blockchain:
block_obj = self.add_block(block, associated_data)
if not block_obj.validate(self):
break
self.cache_associated_data(block_obj.transaction)
last_valid = block_obj
except FileNotFoundError:
pass