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

rpc, wallet: add abandoned field for all categories of transaction in ListTransaction #25158

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

brunoerg
Copy link
Contributor

Fixes #25130

@DrahtBot
Copy link
Contributor

DrahtBot commented May 18, 2022

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK achow101

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

No conflicts as of last run.

Copy link
Contributor

@jonatack jonatack left a comment

Choose a reason for hiding this comment

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

Quick readover of the code as a break from seminar readings, but a key point would be to consider why this field was not returned other than for sent txns (and if concept ACKs, ensure there is appropriate test coverage in the tests that assert on this field. Quick grep:)

test/functional/feature_backwards_compatibility.py:197:                        assert not(txs[1]["abandoned"])
test/functional/feature_backwards_compatibility.py:200:                        assert txs[3]["abandoned"]
test/functional/wallet_abandonconflict.py:197:            assert_equal(tx["abandoned"], False)
test/functional/wallet_abandonconflict.py:202:        assert_equal(double_spend["abandoned"], False)
test/functional/wallet_abandonconflict.py:131:            assert_equal(tx['abandoned'], True)

doc/release-notes.md Outdated Show resolved Hide resolved
src/wallet/rpc/transactions.cpp Outdated Show resolved Hide resolved
@brunoerg
Copy link
Contributor Author

brunoerg commented May 18, 2022

a key point would be to consider why this field was not returned other than for sent txns

I couldn't find any resources about it, i'd like to understand more, btw Concept NACKs are welcome! I find #7739 which added this field but there is no explanation about why it is only in send.

@brunoerg brunoerg force-pushed the 2022-05-abandoned-listtransactions branch from 6ef89bf to c3450ad Compare May 18, 2022 13:34
@brunoerg
Copy link
Contributor Author

Force-pushed addressing @jonatack's comments

@achow101
Copy link
Member

Are you still working on this?

@brunoerg
Copy link
Contributor Author

brunoerg commented Jan 6, 2023

Are you still working on this?

Yes.

@brunoerg brunoerg force-pushed the 2022-05-abandoned-listtransactions branch from 7e5a8a2 to efdb80a Compare January 6, 2023 13:46
@achow101
Copy link
Member

ACK efdb80a

I think it's reasonable to output this for all transactions, even if we decide that one type cannot be abandoned. A trivial case where this is useful are send-to-self transactions as these show up as individual send and receive transactions.

@maflcko
Copy link
Member

maflcko commented Jan 13, 2023

You will have to modify the RPC docs for gettransaction as well

@brunoerg brunoerg force-pushed the 2022-05-abandoned-listtransactions branch from efdb80a to 0c52067 Compare January 13, 2023 13:29
@brunoerg
Copy link
Contributor Author

You will have to modify the RPC docs for gettransaction as well

Nice find, thanks! Force-pushed modifying it.

@achow101
Copy link
Member

re-ACK 0c52067

@fanquake fanquake requested a review from Sjors February 8, 2023 11:21
@achow101 achow101 merged commit 91ccb62 into bitcoin:master Apr 26, 2023
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 28, 2023
…ies of transaction in ListTransaction

0c52067 doc: add release notes for `abandoned` field in `gettransaction` and `listtransactions` (brunoerg)
a1aaa7f rpc, wallet: add `abandoned` field for all categories of transactions in ListTransactions (brunoerg)

Pull request description:

  Fixes bitcoin#25130

ACKs for top commit:
  achow101:
    re-ACK 0c52067

Tree-SHA512: 1864460d76decab7898737c96517d722055eb8f81ca52248fe1035723258c6cd4a93251e06a86ecbbb0b0a80af1466b2c86fb142ace4ccb74cc40d5dc3967d7f
@bitcoin bitcoin locked and limited conversation to collaborators Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gettransaction does not contain the field "abandoned" for abandoned receiving tx
7 participants