Skip to content

Test transactions conflicted by double spend in listtransactions - #23146

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
jonatack:test-txns-conflicted-by-double-spend-in-listtransactions
Oct 7, 2021
Merged

maflcko merged 1 commit into
bitcoin:masterfrom
jonatack:test-txns-conflicted-by-double-spend-in-listtransactions

Conversation

@jonatack

Copy link
Copy Markdown
Member

Test the properties of transactions conflicted by a double spend as returned by RPC listtransactions in the abandoned, confirmations, trusted and walletconflicts fields. These fields are also returned by RPCs listsinceblock and gettransactions.

@brunoerg

brunoerg commented Oct 1, 2021

Copy link
Copy Markdown
Contributor

tACK c43b7f4b774fc414fbecdf5edf1f3d912ef0f0f1

Test the properties of transactions conflicted by a double
spend as returned by RPC listtransactions in the "abandoned",
"confirmations", "trusted" and "walletconflicts" fields.

These fields are also returned by RPCs listsinceblock and
gettransactions.
@jonatack
jonatack force-pushed the test-txns-conflicted-by-double-spend-in-listtransactions branch from c43b7f4 to 502f50d Compare October 2, 2021 13:28
@jonatack

jonatack commented Oct 2, 2021

Copy link
Copy Markdown
Member Author

Thanks @brunoerg! I pushed an improved version of the test per git diff c43b7f4 502f50d.

@brunoerg

brunoerg commented Oct 2, 2021

Copy link
Copy Markdown
Contributor

tACK 502f50d

@rajarshimaitra rajarshimaitra left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Concept + tACK 502f50d

Will give another deeper pass to ponder over the behavior.

@rajarshimaitra rajarshimaitra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code review ACK.

Verified that the intended categories are taking changing as expected.
There can be few more redundant checks added, like doing the same thing for other RPC calls that return category. But probably not that useful.

I do have some general comments around rest of the tests, but that's outside of the scope of this PR, and better done elsewhere.

Just one ignore-able nit

@maflcko
maflcko merged commit c0b6c96 into bitcoin:master Oct 7, 2021
@jonatack
jonatack deleted the test-txns-conflicted-by-double-spend-in-listtransactions branch October 7, 2021 10:41
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Apr 3, 2022
…listtransactions

502f50d Test transactions conflicted by double spend in listtransactions (Jon Atack)

Pull request description:

  Test the properties of transactions conflicted by a double spend as returned by RPC listtransactions in the abandoned, confirmations, trusted and walletconflicts fields. These fields are also returned by RPCs listsinceblock and gettransactions.

ACKs for top commit:
  brunoerg:
    tACK 502f50d
  rajarshimaitra:
    Concept + tACK bitcoin@502f50d

Tree-SHA512: 28968f4a5f1960ea45b2e6f5b20fe25c1b51f66944062dcddea52ea970ad21c74d583793d091b84e8a5e506d6aecc1f0435c5b918213975b22c38e02bba19aa1
@bitcoin bitcoin locked and limited conversation to collaborators Oct 30, 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