Skip to content

Conversation

theStack
Copy link
Contributor

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).

@DrahtBot DrahtBot added the Tests label Jul 20, 2021
Copy link
Contributor

@kristapsk kristapsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 2ebf2fe

@maflcko maflcko merged commit 40fed33 into bitcoin:master Jul 21, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jul 23, 2021
…y in block chain'

2ebf2fe test: check for RPC error 'Transaction already in block chain' (-27) (Sebastian Falbesoner)

Pull request description:

  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).

ACKs for top commit:
  kristapsk:
    ACK 2ebf2fe (ran linter, looked at changes and ran modified test and checked code in `src/node/transaction.cpp`)
  darosior:
    ACK 2ebf2fe

Tree-SHA512: 8bfbd3ff3da0cb3b8745f69b8ca2377f85fa99f0270750840b60e6ae43b5645c5c59b236993e8b2ad0444ec4171484e4f1ee23fa7e81b79d4222bcb623666fa5
@theStack theStack deleted the 202107-test-tx_already_in_blockchain branch July 31, 2021 20:04
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants