Repository navigation
test: check that combining PSBTs with different txs fails - #25670
Merged
achow101 merged 2 commits intoJul 28, 2022
Merged
Conversation
theStack
force-pushed
the
202207-test-add_combinepsbts_fail_test
branch
from
July 21, 2022 20:29
d79d846 to
b4f3322
Compare
Contributor
Author
|
Force-pushed a different variant of the first commit (extending the PSBT ctor), avoiding mutable objects as default parameters due to the following linter complaint: |
instagibbs
approved these changes
Jul 22, 2022
instagibbs
left a comment
Member
There was a problem hiding this comment.
ACK b4f332275c593d5c8f454f3e2b7f5d491ef4f520
This will allow to create simple PSBTs as short one-liners, without the need to have three individual assignments (globals, inputs, outputs).
theStack
force-pushed
the
202207-test-add_combinepsbts_fail_test
branch
from
July 23, 2022 07:02
b4f3322 to
16a0b28
Compare
Contributor
Author
|
Force-pushed with changes as suggested by @instagibbs (named arguments for PSBT ctor, adding call for success case of combining two identical PSBTs). |
theStack
force-pushed
the
202207-test-add_combinepsbts_fail_test
branch
from
July 23, 2022 07:09
16a0b28 to
4e616d2
Compare
Member
|
reACK 4e616d2 |
Member
|
ACK 4e616d2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds missing test coverage for the
combinepsbtRPC, in the case of combining two PSBTs with different transactions:bitcoin/src/psbt.cpp
Lines 24 to 27 in b8067cd
The calling function
CombinePSBTschecks for the false return value and then returns the transaction error stringPSBT_MISMATCH:bitcoin/src/psbt.cpp
Lines 433 to 435 in b8067cd
bitcoin/src/util/error.cpp
Lines 30 to 31 in b8067cd