When converttopsbt is called with a signed transaction, it either fails with "TX decode failed" if one or more inputs were segwit, or "Inputs must not have scriptSigs and scriptWitnesses" otherwise. Since no effort is made by the test to ensure the inputs are segwit or not, avoid checking the exact message used. The error code is still checked to ensure it is of the correct kind of failure.
Bugfix: test/functional/rpc_psbt: Remove check for specific error message that depends on uncertain assumptions #14818
pull luke-jr wants to merge 2 commits into bitcoin:master from luke-jr:bugfix_test_rpc_psbt changing 1 files +4 −3-
luke-jr commented at 5:47 PM on November 27, 2018: member
-
097c4aa379
Bugfix: test/functional/rpc_psbt: Remove check for specific error message that depends on uncertain assumptions
When converttopsbt is called with a signed transaction, it either fails with "TX decode failed" if one or more inputs were segwit, or "Inputs must not have scriptSigs and scriptWitnesses" otherwise. Since no effort is made by the test to ensure the inputs are segwit or not, avoid checking the exact message used. The error code is still checked to ensure it is of the correct kind of failure.
-
Bugfix: test/functional/rpc_psbt: Correct test description comment c87fc71f7e
- MarcoFalke requested review from instagibbs on Nov 27, 2018
-
MarcoFalke commented at 6:53 PM on November 27, 2018: member
Fixes: #13738
-
instagibbs commented at 6:56 PM on November 27, 2018: member
didn't know you could give an empty string
utACK https://github.com/bitcoin/bitcoin/pull/14818/commits/c87fc71f7e9316bcc0653cd86c50177424b5b1f9
-
MarcoFalke commented at 7:01 PM on November 27, 2018: member
@luke-jr Right
-
achow101 commented at 10:22 PM on November 27, 2018: member
utACK c87fc71f7e9316bcc0653cd86c50177424b5b1f9
- MarcoFalke added the label Tests on Nov 27, 2018
- MarcoFalke referenced this in commit 8cca1fbea9 on Apr 25, 2019
- MarcoFalke merged this on Apr 25, 2019
- MarcoFalke closed this on Apr 25, 2019
- sidhujag referenced this in commit eb6d7421ed on Apr 27, 2019
- MarcoFalke referenced this in commit 966d8d0842 on Jun 18, 2019
- MarcoFalke referenced this in commit 832eb4ff54 on Jun 18, 2019
- HashUnlimited referenced this in commit dde28d0fad on Aug 23, 2019
- HashUnlimited referenced this in commit a4591377e5 on Aug 23, 2019
- Bushstar referenced this in commit 1c0c1012cf on Aug 24, 2019
- Bushstar referenced this in commit 54789e199e on Aug 24, 2019
- deadalnix referenced this in commit 4957ae63d6 on Jun 21, 2020
- pravblockc referenced this in commit 9a23fe0916 on Sep 25, 2021
- DrahtBot locked this on Dec 16, 2021