Skip to content
Commit 4849b6e8 authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

chainHead: Produce method responses on `chainHead_follow` (#14692)



* chainHead/api: Make storage/body/call pure RPC methods

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead: Add mpsc channel between RPC methods

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead/subscriptions: Extract mpsc::Sender via BlockGuard

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead/subscriptions: Generate and provide the method operation ID

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead: Generate `chainHead_body` response

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead: Generate `chainHead_call` response

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead: Generate `chainHead_storage` responses

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead: Propagate responses of methods to chainHead_follow

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead/tests: Adjust `chainHead_body` responses

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead/tests: Adjust `chainHead_call` responses

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead/tests: Adjust `chainHead_call` responses

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead/tests: Ensure unique operation IDs across methods

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead/events: Remove old method events

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead: Return `InvalidBlock` error if pinning fails

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead: Wrap subscription IDs

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* chainHead/tests: Ensure separate operation IDs across subscriptions

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

---------

Signed-off-by: default avatarAlexandru Vasile <[email protected]>
Co-authored-by: parity-processbot <>
parent 7afff714
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment