-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chainHead: Allow methods to be called from within a single connection context and limit connections #3481
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
Merged
Merged
chainHead: Allow methods to be called from within a single connection context and limit connections #3481
Changes from 12 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
d99e173
Update jsonrpsee to branch PR
lexnv dd0a68f
rpc-v2: Implement connection limiter struct
lexnv 09b7fc6
chainHead/api: Register raw methods for chainHead methods
lexnv 7c682a4
chainHead: Allow chainHead to be called from a single connection
lexnv a38df08
chainHead/tests: Check multiple connection calls
lexnv ec9dd79
chainHead/tests: Ensure single connection works
lexnv e47477a
chainHead/tests: Ensure unpin does not work from different connections
lexnv 64ee521
Cargo: Update jsonrpsee to 0.22.2 unreleased
lexnv 683ecca
chainHead: Use connection details instead of connection id
lexnv e6547d6
cargo: Use jsonrpsee from crates.io
lexnv f215aa9
Merge branch 'master' into lexnv/single-chain-head-connection
lexnv 1a503d2
chainHead/tests: Fix merge conflict with master
lexnv ad98383
rpc-v2/common: Limit the number of subscriptions for a connection ID
lexnv 07a18a6
chainHead/config: Add max follow subscriptions per connection
lexnv d3fc06a
chainHead: Limit number of chainHead_follow subscriptions
lexnv 493f933
chainHead: Add RAII wrappers for managing registering tokens
lexnv 4b34a3b
chainHead/tests: Adjust testing
lexnv e726a51
chainHead/follow: Early detection when chainHead client is disconnected
lexnv 539291d
chainHead/tests: Check connection limits
lexnv d5ce140
Update substrate/client/rpc-spec-v2/Cargo.toml
lexnv 378d9b9
Update cargo lock
lexnv 36e986f
chainHead: Clarify connection context for methods
lexnv 9405b8a
chainHead: Adjust comment wrt jsonrpc future
lexnv e506c6a
chainHead: Generate runtime call event after the future is propagated
lexnv fe460db
chainHead/tests: Adjust testing to use jsonrpsee macro interface
lexnv 827254c
Merge branch 'master' into lexnv/single-chain-head-connection
lexnv 512d816
Update cargo.lock
lexnv 109d2b7
rpc-v2/connections: Check empty connection cleans the connection ID
lexnv 71cbfeb
chainHead: Encapsulate rpc connections with subscription management
lexnv 0e015ab
subscription/tests: Check resource cleanup on drop
lexnv 65e26e4
Update substrate/client/rpc-spec-v2/src/common/connections.rs
lexnv aae5a11
chainHead/connections: Detect duplicate tokens
lexnv f06138b
chainHead/connections: Change connection names
lexnv f78d74b
chainHead: Add comment for limit reached on invalid subscription ID
lexnv 9b9d196
chainHead: Guard fn with cfg test
lexnv 9e7803e
chainHead/tests: Adjust comment
lexnv f56316a
rpc-v2/connections: Remove data on empty identifiers as well
lexnv 8a11f0e
Merge remote-tracking branch 'origin/master' into lexnv/single-chain-…
lexnv 5d4d494
Merge branch 'master' into lexnv/single-chain-head-connection
lexnv 5195aa9
rpc-v2/cargo: Fix taplo check
lexnv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.