Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

chainHead: Limit ongoing operations #14699

Merged
merged 28 commits into from
Aug 15, 2023
Merged

chainHead: Limit ongoing operations #14699

merged 28 commits into from
Aug 15, 2023

Commits on Jul 31, 2023

  1. chainHead/api: Make storage/body/call pure RPC methods

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    4787dba View commit details
    Browse the repository at this point in the history
  2. chainHead: Add mpsc channel between RPC methods

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    8050811 View commit details
    Browse the repository at this point in the history
  3. chainHead/subscriptions: Extract mpsc::Sender via BlockGuard

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    3b30eb3 View commit details
    Browse the repository at this point in the history
  4. chainHead/subscriptions: Generate and provide the method operation ID

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    d5305a9 View commit details
    Browse the repository at this point in the history
  5. chainHead: Generate chainHead_body response

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    50c840d View commit details
    Browse the repository at this point in the history
  6. chainHead: Generate chainHead_call response

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    6c5940c View commit details
    Browse the repository at this point in the history
  7. chainHead: Generate chainHead_storage responses

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    589efa8 View commit details
    Browse the repository at this point in the history
  8. chainHead: Propagate responses of methods to chainHead_follow

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    8062837 View commit details
    Browse the repository at this point in the history
  9. chainHead/tests: Adjust chainHead_body responses

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    4f7b445 View commit details
    Browse the repository at this point in the history
  10. chainHead/tests: Adjust chainHead_call responses

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    53fcd99 View commit details
    Browse the repository at this point in the history
  11. chainHead/tests: Adjust chainHead_call responses

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    167dd72 View commit details
    Browse the repository at this point in the history
  12. chainHead/tests: Ensure unique operation IDs across methods

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    35aca6d View commit details
    Browse the repository at this point in the history
  13. chainHead/events: Remove old method events

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    008fa22 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. chainHead/subscriptions: Add limit helper

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    6c30aef View commit details
    Browse the repository at this point in the history
  2. chainHead/subscription: Expose limits to BlockGuard

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    a29d677 View commit details
    Browse the repository at this point in the history
  3. chainHead/tests: Adjust testing to ongoing operations

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    a33d80c View commit details
    Browse the repository at this point in the history
  4. chainHead: Make limits configurable via ChainHeadConfig

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    40a73fb View commit details
    Browse the repository at this point in the history
  5. chainHead/tests: Adjust testing to ChainHeadConfig

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    eb15293 View commit details
    Browse the repository at this point in the history
  6. chainHead/tests: Ensure operation limits discards items

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

Commits on Aug 9, 2023

  1. Merge remote-tracking branch 'origin/master' into lexnv/chainhead_limits

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    4e4cca8 View commit details
    Browse the repository at this point in the history
  2. chainHead: Improve documentation

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    defc196 View commit details
    Browse the repository at this point in the history
  3. chainHead: Rename OngoingOperations -> LimitOperations

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    4cacbc1 View commit details
    Browse the repository at this point in the history
  4. chainHead: Rename reserve -> reserve_at_most

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    09c743c View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. Configuration menu
    Copy the full SHA
    06fec3e View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. chainHead: Use duration const instead of u64

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    ab481e8 View commit details
    Browse the repository at this point in the history
  2. chainHead/subscription: Use tokio::sync::Semaphore for limits

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    09e7372 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/lexnv/chainhead_limits' into lex…

    …nv/chainhead_limits
    lexnv committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    8954c33 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2023

  1. Update client/rpc-spec-v2/src/chain_head/subscription/inner.rs

    Co-authored-by: Sebastian Kunert <skunert49@gmail.com>
    lexnv and skunert authored Aug 15, 2023
    Configuration menu
    Copy the full SHA
    a3df109 View commit details
    Browse the repository at this point in the history