mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge c3038bf95a into merged_master (Bitcoin PR bitcoin/bitcoin#29076)
This commit is contained in:
commit
69c93b7a8f
1 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,10 @@ FUZZ_TARGET(wallet_fees, .init = initialize_setup)
|
|||
wallet.SetLastBlockProcessed(chainstate->m_chain.Height(), chainstate->m_chain.Tip()->GetBlockHash());
|
||||
}
|
||||
|
||||
if (fuzzed_data_provider.ConsumeBool()) {
|
||||
wallet.m_fallback_fee = CFeeRate{ConsumeMoney(fuzzed_data_provider, /*max=*/COIN)};
|
||||
}
|
||||
|
||||
if (fuzzed_data_provider.ConsumeBool()) {
|
||||
wallet.m_discard_rate = CFeeRate{ConsumeMoney(fuzzed_data_provider, /*max=*/COIN)};
|
||||
}
|
||||
|
|
@ -58,6 +62,9 @@ FUZZ_TARGET(wallet_fees, .init = initialize_setup)
|
|||
if (fuzzed_data_provider.ConsumeBool()) {
|
||||
coin_control.m_confirm_target = fuzzed_data_provider.ConsumeIntegralInRange<unsigned int>(0, 999'000);
|
||||
}
|
||||
if (fuzzed_data_provider.ConsumeBool()) {
|
||||
coin_control.m_fee_mode = fuzzed_data_provider.ConsumeBool() ? FeeEstimateMode::CONSERVATIVE : FeeEstimateMode::ECONOMICAL;
|
||||
}
|
||||
|
||||
FeeCalculation fee_calculation;
|
||||
FeeCalculation* maybe_fee_calculation{fuzzed_data_provider.ConsumeBool() ? nullptr : &fee_calculation};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue