fn import_block(
		&self,
		import_block: ImportBlock<Block>,
		new_cache: HashMap<CacheKeyId, Vec<u8>>,
	) -> Result<ImportResult, Self::Error> {
		self.lock_import_and_run(|operation| {
			self.apply_block(operation, import_block, new_cache)
		}).map_err(|e| ConsensusErrorKind::ClientImport(e.to_string()).into())
	}
/// Import a checked and validated block. If a justification is provided in
/// `ImportBlock` then `finalized` *must* be true.
Import a checked and validated block. If a justification is provided in
`ImportBlock` then `finalized` *must* be true.
Import a checked and validated block . If a justification is provided in ` ImportBlock ` then ` finalized ` * must * be true .
fn import_block(
		&self,
		import_block: ImportBlock<Block>,
		new_cache: HashMap<CacheKeyId, Vec<u8>>,
	) -> Result<ImportResult, Self::Error> {
		self.lock_import_and_run(|operation| {
			self.apply_block(operation, import_block, new_cache)
		}).map_err(|e| ConsensusErrorKind::ClientImport(e.to_string()).into())
	}
fn import_block ( & self , import_block : ImportBlock < Block > , new_cache : HashMap < CacheKeyId , Vec < u8 > > , ) -> Result < ImportResult , Self :: Error > { self . lock_import_and_run ( | operation | { self . apply_block ( operation , import_block , new_cache ) } ) . map_err ( | e | ConsensusErrorKind :: ClientImport ( e . to_string ( ) ) . into ( ) ) }
Import a checked and validated block.
Import a checked and validated block .
&self
import_block
ImportBlock<Block>
new_cache
HashMap<CacheKeyId, Vec<u8>>
&self
import_block
ImportBlock<Block>
new_cache
HashMap<CacheKeyId, Vec<u8>>