mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
test: ensure default hash matches (#11486)
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user