mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-31 16:24:48 +02:00
coincontrol: Replace HasInputWeight with returning optional from Get
This commit is contained in:
@@ -76,10 +76,7 @@ FUZZ_TARGET(coincontrol, .init = initialize_coincontrol)
|
||||
(void)coin_control.SetInputWeight(out_point, weight);
|
||||
},
|
||||
[&] {
|
||||
// Condition to avoid the assertion in GetInputWeight
|
||||
if (coin_control.HasInputWeight(out_point)) {
|
||||
(void)coin_control.GetInputWeight(out_point);
|
||||
}
|
||||
(void)coin_control.GetInputWeight(out_point);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user