test: ensure default hash matches (#11486)

This commit is contained in:
Matthias Seitz
2024-10-04 17:43:35 +02:00
committed by GitHub
parent a42cfbbae7
commit 62e629329a

View File

@ -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());
}
}