mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 06:27:58 +00:00
chore: reducing codec times (#11688)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user