paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.39k stars 2.65k forks source link

[RPC-Spec-V2] Limit `chainHead_unstable_follow` subscriptions #14734

Open lexnv opened 1 year ago

lexnv commented 1 year ago

The JSON-RPC server must accept at least 2 chainHead_unstable_follow subscriptions per JSON-RPC client. Trying to open more might lead to a JSON-RPC error when calling chainHead_unstable_follow. In other words, as long as a JSON-RPC client starts 2 or fewer chainHead_unstable_follow subscriptions, it is guaranteed that this return value will never happen.

// @paritytech/subxt-team