paritytech / json-rpc-interface-spec

30 stars 3 forks source link

transactionWatch: Limit the number of active subscriptions and clarify error codes #146

Closed lexnv closed 8 months ago

lexnv commented 8 months ago

This PR ensures that the server accepts at least 4 transactionWatch subscriptions, similar to the transactionBroadcast API.

While at it, have defined the error codes returned by this API

Have also added a mention wrt invalid decoded transaction bytes in the Invalid event.

cc @paritytech/subxt-team @tomaka

tomaka commented 7 months ago

This can't be guaranteed, because transactions stay in the pool when a JSON-RPC client disconnects.