We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4192061 commit 333b32eCopy full SHA for 333b32e
src/blockdata/block.rs
@@ -517,15 +517,15 @@ mod tests {
517
// test with zero target
518
match some_header.validate_pow(&Uint256::default()) {
519
Err(BlockBadTarget) => (),
520
- _ => assert!(false)
+ _ => panic!("unexpected result from validate_pow"),
521
}
522
523
// test with modified header
524
let mut invalid_header: BlockHeader = some_header.clone();
525
invalid_header.version = invalid_header.version + 1;
526
match invalid_header.validate_pow(&invalid_header.target()) {
527
Err(BlockBadProofOfWork) => (),
528
529
530
531
0 commit comments