diff options
author | Murch <murch@murch.one> | 2023-06-02 14:20:33 -0400 |
---|---|---|
committer | Murch <murch@murch.one> | 2023-06-12 14:19:53 -0400 |
commit | 76c5ea703e77d580b6962e60398f4988cbd9b58b (patch) | |
tree | 5d92f2be40e6ea7b1c83c3f5815af29a946c8d6a /src/rpc/client.cpp | |
parent | b22408df162a224d94ac54e8443b57ef3fd2ca72 (diff) |
fuzz: Fix mini_miner_selection running out of coin
Fixes a bug in the mini_miner_selection fuzz test found by fuzzing:
It was possible for the mini_miner_selection fuzz test to generated
transactions that created fewer new spendable outputs than the two
inputs they each spend. If the fuzz seed did so consistently, eventually
it would cause a `pop_front()` on an empty available_coins.
Fixed by:
- asserting that available_coins is not empty before generating tx
- allowing to build tx with a single coin if only one is available
Diffstat (limited to 'src/rpc/client.cpp')
0 files changed, 0 insertions, 0 deletions