-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(publisher): Ensure OffchainDB readiness and synchronize blocks in…
… order This commit addresses two key issues in the publisher module: OffchainDB synchronization: Previously, receipts were not being populated because the OffchainDB lagged behind the OnChainDB. This has been resolved by ensuring the OffchainDB is fully synchronized to the current height before publishing any streams. In the future, separating streams into distinct processes could avoid delays for streams that do not depend on OffchainDB synchronization. Old and new blocks synchronization: The previous implementation used a blocking while loop to process old blocks until the latest block. This approach delayed the subscription to new blocks, causing significant block misses in the subscription stream. To resolve this, an UnpublishedBlocks abstraction has been introduced. It allows the system to subscribe to new blocks immediately, even while syncing old blocks. Blocks are now published in the correct order based on their heights, ensuring no data is missed or processed out of sequence. References: DS-124
- Loading branch information
1 parent
d854490
commit 4dcb1b7
Showing
10 changed files
with
391 additions
and
131 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.