mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf: remove redundant ommers sealing (#2386)
This commit is contained in:
@ -182,8 +182,7 @@ pub fn validate_block_standalone(
|
||||
) -> Result<(), ConsensusError> {
|
||||
// Check ommers hash
|
||||
// TODO(onbjerg): This should probably be accessible directly on [Block]
|
||||
let ommers_hash =
|
||||
reth_primitives::proofs::calculate_ommers_root(block.ommers.iter().map(|h| h.as_ref()));
|
||||
let ommers_hash = reth_primitives::proofs::calculate_ommers_root(block.ommers.iter());
|
||||
if block.header.ommers_hash != ommers_hash {
|
||||
return Err(ConsensusError::BodyOmmersHashDiff {
|
||||
got: ommers_hash,
|
||||
|
||||
Reference in New Issue
Block a user