You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible that blocks may be be silently missed if a reconnecting occurs because it's restarted by unstable backend.
For instance the following could happen:
A connection is established
Block A, Block B, and Block C are announced and propagated in the subscription
The connection is lost and during this phase Block D is announced
Then after a while the connection is re-established and the next Block E is announced.
Thus, Block D is missed and no way to now about it.
Because subxt mainly care about that finalized blocks, it's not critical for now.
The text was updated successfully, but these errors were encountered:
niklasad1
changed the title
unstable backend: best_block or all_blocks subscription may be silently lose blocks when reconnecting
unstable rpc backend: best_block or all_blocks subscription may be silently lose blocks when reconnecting
May 3, 2024
Yeah, it's hard to know how much I care about missed new/best block notifications because they are ephemeral anyway; as long as all finalized blocks are notified then it's all good, and if you re-subscribe then you should be told about recent new blocks and the latest current best block again anyways :)
Yep, something we can think about in the future.
One use-case may be users that want to query a pruned block, where block D was announced, the client disconnected, the chain pruned block D and the client reconnects.
It's possible that blocks may be be silently missed if a reconnecting occurs because it's restarted by unstable backend.
For instance the following could happen:
Thus, Block D is missed and no way to now about it.
Because subxt mainly care about that finalized blocks, it's not critical for now.
The text was updated successfully, but these errors were encountered: