chainHead_storage: Backport queries for value types (#14551)
* chainHead/events: Add storage params and events Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/tests: Check storage events serialization / deserialization Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/error: Add error for invalid WaitForContinue storage call Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/storage: Use new items params Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/tests: Adjust storage tests to the new API Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/events: Generalize StorageQuery by provided key Signed-off-by: Alexandru Vasile <[email protected]> * chain_head: Add dedicated ChainHeadStorage client for queries Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/storage: Implement queries for hashes of values Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/tests: Check storage queries for hashes of values Signed-off-by: Alexandru Vasile <[email protected]> * chainHead: Improve API documentation wrt multiple entries Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/event: Rename StorageQueue ty to queue_ty Signed-off-by: Alexandru Vasile <[email protected]> * chianHead: Add helper to encode chainHead results as hex str Signed-off-by: Alexandru Vasile <[email protected]> * Update client/rpc-spec-v2/src/chain_head/error.rs Co-authored-by: Sebastian Kunert <[email protected]> * chainHead: Change the `queryResult` to a plain `Result` Signed-off-by: Alexandru Vasile <[email protected]> * chainHead: Stop producing events after the first error Signed-off-by: Alexandru Vasile <[email protected]> * chainHead: Change child_key to child_trie API param Signed-off-by: Alexandru Vasile <[email protected]> --------- Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Sebastian Kunert <[email protected]>
parent
649be3aa
Please register or sign in to comment