From 8a03830d436b219a298db63bbc790e5b200cb500 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 16 Mar 2020 22:05:57 -0400 Subject: [PATCH] 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. --- fuzz/src/full_stack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzz/src/full_stack.rs b/fuzz/src/full_stack.rs index 3879d0b1d..3ae4e56b5 100644 --- a/fuzz/src/full_stack.rs +++ b/fuzz/src/full_stack.rs @@ -99,7 +99,7 @@ impl FeeEstimator for FuzzEstimator { //TODO: We should actually be testing at least much more than 64k... match self.input.get_slice(2) { Some(slice) => cmp::max(slice_to_be16(slice) as u64, 253), - None => 0 + None => 253 } } } -- 2.39.5