chore: reducing codec times (#11688)

This commit is contained in:
yjh
2022-06-18 06:14:50 +08:00
committed by GitHub
parent 1988c4ac1d
commit 3f549bad6c
2 changed files with 11 additions and 10 deletions
@@ -20,7 +20,7 @@
// FIXME #1021 move this into sp-consensus
use codec::{Decode, Encode};
use codec::Encode;
use futures::{
channel::oneshot,
future,
@@ -536,10 +536,6 @@ where
"hash" => ?<Block as BlockT>::Hash::from(block.header().hash()),
);
if Decode::decode(&mut block.encode().as_slice()).as_ref() != Ok(&block) {
error!("Failed to verify block encoding/decoding");
}
if let Err(err) =
evaluation::evaluate_initial(&block, &self.parent_hash, self.parent_number)
{