paritytech / paritytech/subxt

unstable rpc backend: `best_block` or `all_blocks` subscription may be silently lose blocks when reconnecting

Open
#1,568 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
489
Forks
293
Avg merge
18h 35m
Merged PRs (30d)
3

Description

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:

  1. A connection is established
  2. Block A, Block B, and Block C are announced and propagated in the subscription
  3. The connection is lost and during this phase Block D is announced
  4. 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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the RPC subscription and reconnect handling described by the issue; no file or test entry point is provided. Done means reconnecting subscriptions no longer silently omit an announced block, with the A–E sequence covered or the limitation explicitly resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, networking
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.