-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix runtime.history.History.Watchblocks
to emit sequential blocks (no gaps)
#6085
Comments
runtime.History.History.Watchblocks
to emit sequential blocks (no gaps)runtime.history.History.Watchblocks
to emit sequential blocks (no gaps)
Idealy, we move reindexing part from What about problematic
Alternatively (not ideal), we may push for smtg similar to #6079, or keep it even simpler and use I think it would be nice to refactor properly, but also depends on our priorities. |
Agree. I tried to do that in #6089. |
Subscription to
runtime.client.api.WatchBlocks
(see) may return block sequence with missing rounds.This may happen because
runtime.history.History
is not notifying blocks if they areCommitt
-ed vianotify=false
(during reindex)**.Note this is only problematic if node
!hasLocalStorage
, as otherwise storage syncing (worker.storage.committee.Node
) is responsible for notifying blocks viaStorageSyncCheckpoint
. This worker subscribes toroothash.ServiceClient.WatchBlocks
, which may have gaps, however it fetches missing rounds.As discussed in private,
roothash.ServiceClient
should probably not be responsible for reindexing, nor shouldroothash.BlockHistory
know anything about storage, node types etc... Likely this code needs a thorough refactor.** We are guaranteed to have at least two reindexes, possibly more if there are errors during subsequent event processing.
The text was updated successfully, but these errors were encountered: