Skip to content

Commit 8a03830

Browse files
committed
Don't return a feerate of 0 in full_stack_target fuzz on EOF
This triggered a (legitimate) panic in OnChainTxHandler that the feerate in use was non-0, which is required by the feerate API.
1 parent 4c33197 commit 8a03830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzz/src/full_stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl FeeEstimator for FuzzEstimator {
9999
//TODO: We should actually be testing at least much more than 64k...
100100
match self.input.get_slice(2) {
101101
Some(slice) => cmp::max(slice_to_be16(slice) as u64, 253),
102-
None => 0
102+
None => 253
103103
}
104104
}
105105
}

0 commit comments

Comments
 (0)