test: add test for RPC error 'Transaction already in block chain' #22510

pull theStack wants to merge 1 commits into bitcoin:master from theStack:202107-test-tx_already_in_blockchain changing 1 files +9 −0
  1. theStack commented at 9:19 PM on July 20, 2021: member

    This PR adds missing test coverage for the RPC error "Transaction already in block chain" (error code RPC_VERIFY_ALREADY_IN_CHAIN = RPC_TRANSACTION_ALREADY_IN_CHAIN = -27), which is thrown in the function BroadcastTransaction (src/node/transaction.cpp).

  2. test: check for RPC error 'Transaction already in block chain' (-27) 2ebf2fe0e4
  3. DrahtBot added the label Tests on Jul 20, 2021
  4. kristapsk approved
  5. kristapsk commented at 10:34 PM on July 20, 2021: contributor

    ACK 2ebf2fe0e4727a5a57a03f4283bdf1e263855803 (ran linter, looked at changes and ran modified test and checked code in src/node/transaction.cpp)

  6. darosior approved
  7. darosior commented at 9:01 AM on July 21, 2021: member

    ACK 2ebf2fe0e4727a5a57a03f4283bdf1e263855803

  8. MarcoFalke merged this on Jul 21, 2021
  9. MarcoFalke closed this on Jul 21, 2021

  10. sidhujag referenced this in commit 5435c8b23d on Jul 23, 2021
  11. theStack deleted the branch on Jul 31, 2021
  12. DrahtBot locked this on Aug 16, 2022
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-13 21:14 UTC

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