File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ FUZZ_TARGET(wallet_fees, .init = initialize_setup)
3636 wallet.SetLastBlockProcessed (chainstate->m_chain .Height (), chainstate->m_chain .Tip ()->GetBlockHash ());
3737 }
3838
39+ if (fuzzed_data_provider.ConsumeBool ()) {
40+ wallet.m_fallback_fee = CFeeRate{ConsumeMoney (fuzzed_data_provider, /* max=*/ COIN)};
41+ }
42+
3943 if (fuzzed_data_provider.ConsumeBool ()) {
4044 wallet.m_discard_rate = CFeeRate{ConsumeMoney (fuzzed_data_provider, /* max=*/ COIN)};
4145 }
@@ -58,6 +62,9 @@ FUZZ_TARGET(wallet_fees, .init = initialize_setup)
5862 if (fuzzed_data_provider.ConsumeBool ()) {
5963 coin_control.m_confirm_target = fuzzed_data_provider.ConsumeIntegralInRange <unsigned int >(0 , 999'000 );
6064 }
65+ if (fuzzed_data_provider.ConsumeBool ()) {
66+ coin_control.m_fee_mode = fuzzed_data_provider.ConsumeBool () ? FeeEstimateMode::CONSERVATIVE : FeeEstimateMode::ECONOMICAL;
67+ }
6168
6269 FeeCalculation fee_calculation;
6370 FeeCalculation* maybe_fee_calculation{fuzzed_data_provider.ConsumeBool () ? nullptr : &fee_calculation};
You can’t perform that action at this time.
0 commit comments