mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: integrate Test trait for sealed types (#13746)
This commit is contained in:
@ -1809,7 +1809,7 @@ where
|
||||
return Err(e)
|
||||
}
|
||||
|
||||
if let Err(e) = self.consensus.validate_header(block) {
|
||||
if let Err(e) = self.consensus.validate_header(block.sealed_header()) {
|
||||
error!(target: "engine::tree", ?block, "Failed to validate header {}: {e}", block.hash());
|
||||
return Err(e)
|
||||
}
|
||||
@ -2248,7 +2248,9 @@ where
|
||||
block.parent_hash().into(),
|
||||
))
|
||||
})?;
|
||||
if let Err(e) = self.consensus.validate_header_against_parent(&block, &parent_block) {
|
||||
if let Err(e) =
|
||||
self.consensus.validate_header_against_parent(block.sealed_header(), &parent_block)
|
||||
{
|
||||
warn!(target: "engine::tree", ?block, "Failed to validate header {} against parent: {e}", block.hash());
|
||||
return Err(e.into())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user