Skip to content

Commit

Permalink
feat(events): remove publishing events during load
Browse files Browse the repository at this point in the history
  • Loading branch information
glevco committed Mar 10, 2023
1 parent 45d274a commit a4e6197
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions hathor/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,11 +620,6 @@ def _initialize_components_new(self) -> None:
# complex code
self.tx_storage.indexes._manually_initialize(self.tx_storage)

if self._event_manager and self._event_manager.emit_load_events:
# Publish events for all stored transactions
for tx in self.tx_storage.topological_iterator():
self.pubsub.publish(HathorEvents.NETWORK_NEW_TX_ACCEPTED, tx=tx)

# Verify if all checkpoints that exist in the database are correct
try:
self._verify_checkpoints()
Expand Down

0 comments on commit a4e6197

Please sign in to comment.