Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuzz: Fix mini_miner_selection running out of coin #27806

Merged
merged 1 commit into from Jun 13, 2023

Commits on Jun 12, 2023

  1. 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
    murchandamus committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    76c5ea7 View commit details
    Browse the repository at this point in the history