mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 00:28:01 +00:00
Refactoring: Remove ExtraVerification in the import queue (#2844)
* Remove ExtraVerification in the import queue * Fix Babe * Fix node-template
This commit is contained in:
committed by
Robert Habermeier
parent
3496f11404
commit
ce302390dd
@@ -126,20 +126,6 @@ impl<T: SyncOracle> SyncOracle for Arc<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Extra verification for blocks.
|
||||
pub trait ExtraVerification<B: Block>: Send + Sync {
|
||||
/// Future that resolves when the block is verified, or fails with error if
|
||||
/// not.
|
||||
type Verified: IntoFuture<Item=(),Error=String>;
|
||||
|
||||
/// Do additional verification for this block.
|
||||
fn verify(
|
||||
&self,
|
||||
header: &B::Header,
|
||||
body: Option<&[B::Extrinsic]>,
|
||||
) -> Self::Verified;
|
||||
}
|
||||
|
||||
/// A list of all well known keys in the cache.
|
||||
pub mod well_known_cache_keys {
|
||||
/// The type representing cache keys.
|
||||
|
||||
Reference in New Issue
Block a user