Repository navigation
Conversation
original_change_index output without a destination original_change_index output without a destination
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
There was a problem hiding this comment.
Concept ACK
As I mentioned in #35302 (comment), this can replace an OP_RETURN which is posting a proof for a meta protocol or similar. I agree that this should throw an error explicitly as this a mistake on behalf of the user.
To be precise in what I mean for other reviewers:
TX A:
-----------------------
Input A | Pay Bob
Input B | OP_RETURN
Input C | Change
-----------------------
Replacement of A, with original_change_index=1
------------------------------------
Input A | Pay Bob
Input B | Some new change address
Input C | Other change address
Input D |
------------------------------------
In the replacement the OP_RETURN is replaced with a new change address
|
Could you also cover I ran |
d03bcce to
d11db9b
Compare
|
re: @cyb3ralbert
Done. |
rustaceanrob
left a comment
There was a problem hiding this comment.
See #37017 for an approach to remove feebumper::Result entirely
d11db9b to
1c0e898
Compare
Such an output, like an OP_RETURN, was silently dropped from the bumped transaction and change sent to a new address.
1c0e898 to
b903c2b
Compare
|
Concept ACK |

Moved from #35302 due to #35302 (comment).
This PR:
refactorsCreateRateBumpTransactionto return autil::Expectedof a Result and Error Struct instead of using out params. This change makes it easier for #35302 to add a sp_recipients field to the Result Struct instead of adding a new output parameter.original_change_indexthat specifies an output without a destination. The pre-existing behaviour silently replaced the specified output if anOP_RETURNoutput was specified.EDIT:
Scrapped the refactor of
CreateRateBumpTransactionto returnutil::Expectedin favour of #37017.