From 6a0b7b41641379f54bbaaf53e3a066ee484f7616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Thu, 20 May 2021 15:28:41 +0200 Subject: [PATCH] Add `AuxStore` as super trait of `AbstractClient` (#3066) --- polkadot/node/service/src/client.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/polkadot/node/service/src/client.rs b/polkadot/node/service/src/client.rs index adc2ef53c0..cd11d6a52c 100644 --- a/polkadot/node/service/src/client.rs +++ b/polkadot/node/service/src/client.rs @@ -23,7 +23,7 @@ use sp_blockchain::HeaderBackend; use sp_runtime::{ Justifications, generic::{BlockId, SignedBlock}, traits::{Block as BlockT, BlakeTwo256}, }; -use sc_client_api::{Backend as BackendT, BlockchainEvents, KeyIterator}; +use sc_client_api::{Backend as BackendT, BlockchainEvents, KeyIterator, AuxStore}; use sp_storage::{StorageData, StorageKey, ChildInfo, PrefixedStorageKey}; use polkadot_primitives::v1::{Block, ParachainHost, AccountId, Nonce, Balance, Header, BlockNumber, Hash}; use consensus_common::BlockStatus; @@ -78,6 +78,7 @@ pub trait AbstractClient: Block, StateBackend = Backend::State > + + AuxStore where Block: BlockT, Backend: BackendT, @@ -90,8 +91,13 @@ impl AbstractClient for Client Block: BlockT, Backend: BackendT, Backend::State: sp_api::StateBackend, - Client: BlockchainEvents + ProvideRuntimeApi + HeaderBackend - + Sized + Send + Sync + Client: BlockchainEvents + + ProvideRuntimeApi + + HeaderBackend + + AuxStore + + Sized + + Send + + Sync + CallApiAt< Block, StateBackend = Backend::State