[RPC-Spec-V2]: transactionWatch_unstable_submitAndWatch
shouldn't use pipe_from_stream
#3076
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.
The implementation of transactionWatch_unstable_submitAndWatch of is using pipe_from_stream which in turn keeps a buffer which will drop the subscription if the client can't keep with the server.
Thus, it doesn't comply with the spec and ideally the implementation should keep a buffer of max 3 notifications and replace/merge older ones if it's can't keep up with it.
I propose a custom implementation with a manual buffer to ensure that.
//cc @paritytech/subxt-team
The text was updated successfully, but these errors were encountered: