-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unstable JSON-RPC function that exports recent networking events #72
Comments
This function should be added as a PR to https://github.com/paritytech/json-rpc-interface-spec/ |
We need to add a few events in
All the JSON-RPC events can then be derived from this. Then, the events |
Actually, we can just pretend that the substream has opened when we start the opening, so there's no need for these two events. |
The solution (which I feel stupid for not thinking of earlier) is to provide an |
A big difficulty, which I didn't anticipate, is that the connections that the network service opens do not target a chain in particular, but the JSON-RPC function does target a specific chain. This means that we have to somehow report to the API user only connections that we think might belong to a specific chain. Reporting only some connections might be misleading? Maybe we should report all connections? |
paritytech/smoldot#2245
The text was updated successfully, but these errors were encountered: