Skip to content
Commit 1fef5ee4 authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

chainHead_storage: Backport queries for value types (#14551)



* chainHead/events: Add storage params and events

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

* chainHead/tests: Check storage events serialization / deserialization

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

* chainHead/error: Add error for invalid WaitForContinue storage call

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

* chainHead/storage: Use new items params

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

* chainHead/tests: Adjust storage tests to the new API

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

* chainHead/events: Generalize StorageQuery by provided key

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

* chain_head: Add dedicated ChainHeadStorage client for queries

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

* chainHead/storage: Implement queries for hashes of values

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

* chainHead/tests: Check storage queries for hashes of values

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

* chainHead: Improve API documentation wrt multiple entries

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

* chainHead/event: Rename StorageQueue ty to queue_ty

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

* chianHead: Add helper to encode chainHead results as hex str

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

* Update client/rpc-spec-v2/src/chain_head/error.rs

Co-authored-by: default avatarSebastian Kunert <[email protected]>

* chainHead: Change the `queryResult` to a plain `Result`

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

* chainHead: Stop producing events after the first error

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

* chainHead: Change child_key to child_trie API param

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

---------

Signed-off-by: default avatarAlexandru Vasile <[email protected]>
Co-authored-by: default avatarSebastian Kunert <[email protected]>
parent 649be3aa
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