mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 01:42:58 +01:00
fuzz: fix implicit-integer-sign-change
in wallet_create_transaction
This commit is contained in:
parent
f07a533dfc
commit
5a26cf7773
@ -46,7 +46,7 @@ FUZZ_TARGET(wallet_create_transaction, .init = initialize_setup)
|
||||
if (fuzzed_data_provider.ConsumeBool()) coin_control.m_version = fuzzed_data_provider.ConsumeIntegral<unsigned int>();
|
||||
coin_control.m_avoid_partial_spends = fuzzed_data_provider.ConsumeBool();
|
||||
coin_control.m_include_unsafe_inputs = fuzzed_data_provider.ConsumeBool();
|
||||
if (fuzzed_data_provider.ConsumeBool()) coin_control.m_confirm_target = fuzzed_data_provider.ConsumeIntegral<unsigned int>();
|
||||
if (fuzzed_data_provider.ConsumeBool()) coin_control.m_confirm_target = fuzzed_data_provider.ConsumeIntegralInRange<unsigned int>(0, 999'000);
|
||||
coin_control.destChange = fuzzed_data_provider.ConsumeBool() ? fuzzed_wallet.GetDestination(fuzzed_data_provider) : ConsumeTxDestination(fuzzed_data_provider);
|
||||
if (fuzzed_data_provider.ConsumeBool()) coin_control.m_change_type = fuzzed_data_provider.PickValueInArray(OUTPUT_TYPES);
|
||||
if (fuzzed_data_provider.ConsumeBool()) coin_control.m_feerate = CFeeRate(ConsumeMoney(fuzzed_data_provider, /*max=*/COIN));
|
||||
|
Loading…
Reference in New Issue
Block a user