test: check that bumping tx with already spent coin fails #26127

pull theStack wants to merge 1 commits into bitcoin:master from theStack:202209-test-bumpfee-check_that_bumping_tx_with_spent_input_fails changing 1 files +13 −2
  1. theStack commented at 6:09 PM on September 19, 2022: contributor

    This PR adds missing coverage for the bumpfee RPC, for the case that a wallet transaction is passed with an input that is already spent: https://github.com/bitcoin/bitcoin/blob/0b02ce914e8594e8938e527c91c07f57def4e943/src/wallet/feebumper.cpp#L182-L186

    This is achieved by simply creating a transaction with a wallet and then mining it (I'm not aware of any other scenario how this could be achieved). Additionally, two RPC throw checks are changed in the test to be more specific: https://github.com/bitcoin/bitcoin/blob/0b02ce914e8594e8938e527c91c07f57def4e943/src/wallet/feebumper.cpp#L42-L45 https://github.com/bitcoin/bitcoin/blob/0b02ce914e8594e8938e527c91c07f57def4e943/src/wallet/feebumper.cpp#L47-L50

  2. test: check that bumping tx with already spent coin fails 74eb194f81
  3. fanquake added the label Tests on Sep 19, 2022
  4. fanquake requested review from glozow on Sep 19, 2022
  5. glozow commented at 3:16 PM on September 20, 2022: member

    ACK 74eb194f8155624c598ede1a3f45545f8d74c9db

    Test seems sensible and correct. I didn't exhaustively check for coverage, but indeed seems like this isn't already tested in wallet_bumpfee.py.

  6. MarcoFalke merged this on Sep 20, 2022
  7. MarcoFalke closed this on Sep 20, 2022

  8. theStack deleted the branch on Sep 20, 2022
  9. sidhujag referenced this in commit 430d06b774 on Sep 20, 2022
  10. bitcoin locked this on Sep 20, 2023
Contributors
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me