Skip to content
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

chainHead: Allow methods to be called from within a single connection context and limit connections #3481

Merged
merged 40 commits into from
Apr 2, 2024

Commits on Feb 23, 2024

  1. Update jsonrpsee to branch PR

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    d99e173 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. rpc-v2: Implement connection limiter struct

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    dd0a68f View commit details
    Browse the repository at this point in the history
  2. chainHead/api: Register raw methods for chainHead methods

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    09b7fc6 View commit details
    Browse the repository at this point in the history
  3. chainHead: Allow chainHead to be called from a single connection

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    7c682a4 View commit details
    Browse the repository at this point in the history
  4. chainHead/tests: Check multiple connection calls

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    a38df08 View commit details
    Browse the repository at this point in the history
  5. chainHead/tests: Ensure single connection works

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    ec9dd79 View commit details
    Browse the repository at this point in the history
  6. chainHead/tests: Ensure unpin does not work from different connections

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    e47477a View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Cargo: Update jsonrpsee to 0.22.2 unreleased

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    64ee521 View commit details
    Browse the repository at this point in the history
  2. chainHead: Use connection details instead of connection id

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    683ecca View commit details
    Browse the repository at this point in the history
  3. cargo: Use jsonrpsee from crates.io

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    e6547d6 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    f215aa9 View commit details
    Browse the repository at this point in the history
  2. chainHead/tests: Fix merge conflict with master

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    1a503d2 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. rpc-v2/common: Limit the number of subscriptions for a connection ID

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    ad98383 View commit details
    Browse the repository at this point in the history
  2. chainHead/config: Add max follow subscriptions per connection

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    07a18a6 View commit details
    Browse the repository at this point in the history
  3. chainHead: Limit number of chainHead_follow subscriptions

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    d3fc06a View commit details
    Browse the repository at this point in the history
  4. chainHead: Add RAII wrappers for managing registering tokens

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    493f933 View commit details
    Browse the repository at this point in the history
  5. chainHead/tests: Adjust testing

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    4b34a3b View commit details
    Browse the repository at this point in the history
  6. chainHead/follow: Early detection when chainHead client is disconnected

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    e726a51 View commit details
    Browse the repository at this point in the history
  7. chainHead/tests: Check connection limits

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    539291d View commit details
    Browse the repository at this point in the history
  8. Update substrate/client/rpc-spec-v2/Cargo.toml

    Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
    lexnv and niklasad1 committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    d5ce140 View commit details
    Browse the repository at this point in the history
  9. Update cargo lock

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    378d9b9 View commit details
    Browse the repository at this point in the history
  10. chainHead: Clarify connection context for methods

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    36e986f View commit details
    Browse the repository at this point in the history
  11. chainHead: Adjust comment wrt jsonrpc future

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    9405b8a View commit details
    Browse the repository at this point in the history
  12. chainHead: Generate runtime call event after the future is propagated

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    e506c6a View commit details
    Browse the repository at this point in the history
  13. chainHead/tests: Adjust testing to use jsonrpsee macro interface

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    fe460db View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    827254c View commit details
    Browse the repository at this point in the history
  15. Update cargo.lock

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    512d816 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. rpc-v2/connections: Check empty connection cleans the connection ID

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    109d2b7 View commit details
    Browse the repository at this point in the history
  2. chainHead: Encapsulate rpc connections with subscription management

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    71cbfeb View commit details
    Browse the repository at this point in the history
  3. subscription/tests: Check resource cleanup on drop

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    0e015ab View commit details
    Browse the repository at this point in the history
  4. Update substrate/client/rpc-spec-v2/src/common/connections.rs

    Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
    lexnv and niklasad1 committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    65e26e4 View commit details
    Browse the repository at this point in the history
  5. chainHead/connections: Detect duplicate tokens

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    aae5a11 View commit details
    Browse the repository at this point in the history
  6. chainHead/connections: Change connection names

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    f06138b View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. chainHead: Add comment for limit reached on invalid subscription ID

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    f78d74b View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. chainHead: Guard fn with cfg test

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    9b9d196 View commit details
    Browse the repository at this point in the history
  2. chainHead/tests: Adjust comment

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    9e7803e View commit details
    Browse the repository at this point in the history
  3. rpc-v2/connections: Remove data on empty identifiers as well

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    f56316a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8a11f0e View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Configuration menu
    Copy the full SHA
    5d4d494 View commit details
    Browse the repository at this point in the history
  2. rpc-v2/cargo: Fix taplo check

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    5195aa9 View commit details
    Browse the repository at this point in the history