mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
consensus: remove caching functionality from block import pipeline (#13551)
* consensus: remove caching functionality from block import pipeline * client: update docs on Verifier::verify * node: fix block production benchmark
This commit is contained in:
@@ -68,8 +68,8 @@ use sc_client_api::{
|
||||
use sc_state_db::{IsPruned, LastCanonicalized, StateDb};
|
||||
use sp_arithmetic::traits::Saturating;
|
||||
use sp_blockchain::{
|
||||
well_known_cache_keys, Backend as _, CachedHeaderMetadata, Error as ClientError, HeaderBackend,
|
||||
HeaderMetadata, HeaderMetadataCache, Result as ClientResult,
|
||||
Backend as _, CachedHeaderMetadata, Error as ClientError, HeaderBackend, HeaderMetadata,
|
||||
HeaderMetadataCache, Result as ClientResult,
|
||||
};
|
||||
use sp_core::{
|
||||
offchain::OffchainOverlayedChange,
|
||||
@@ -913,10 +913,6 @@ impl<Block: BlockT> sc_client_api::backend::BlockImportOperation<Block>
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn update_cache(&mut self, _cache: HashMap<well_known_cache_keys::Id, Vec<u8>>) {
|
||||
// Currently cache isn't implemented on full nodes.
|
||||
}
|
||||
|
||||
fn update_db_storage(&mut self, update: PrefixedMemoryDB<HashFor<Block>>) -> ClientResult<()> {
|
||||
self.db_updates = update;
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user