Skip to content

Commit

Permalink
test: ensure default hash matches (#11486)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Oct 4, 2024
1 parent a42cfbb commit 62e6293
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/primitives/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1130,4 +1130,13 @@ mod tests {
Some(SealedBlockWithSenders { block: sealed, senders: vec![sender] })
);
}

#[test]
fn test_default_seal() {
let block = SealedBlock::default();
let sealed = block.hash();
let block = block.unseal();
let block = block.seal_slow();
assert_eq!(sealed, block.hash());
}
}

0 comments on commit 62e6293

Please sign in to comment.