[RPC-Spec-V2] chainHead_unstable_follow
shouldn't use pipe_from_stream
#3078
Labels
D1-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
T3-RPC_API
This PR/Issue is related to RPC APIs.
After #1313 was merged, pipe_from_stream will drop the subscription completely if the client can't keep up with the server.
From my brief understanding of the spec is that certain notifications is allowed to be dropped if the client can't keep up with server but not drop the subscription entirely.
Thus, polkadot-sdk should provide a custom subscription implementation for
chainHead_unstable_follow
and overwrite the oldest notifications in buffer with a reasonable size (such as 16).//cc @paritytech/subxt-team
The text was updated successfully, but these errors were encountered: