aboutsummaryrefslogtreecommitdiff
path: root/src/psbt.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-10-29 19:52:31 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-10-29 19:52:42 -0400
commitecad0a8019fb9e8503ec92b6057a5e649866e25e (patch)
tree6124b471974c158dc5d48228defc88509a840e41 /src/psbt.h
parent6a97e8a060f7632bbaee27d3de8035dc6ebe3895 (diff)
parentc1c6c410a66996b2d60d5172189b5a5ec8100842 (diff)
downloadbitcoin-ecad0a8019fb9e8503ec92b6057a5e649866e25e.tar.xz
Merge #17299: test: add reason checks for non-standard txs in test_IsStandard
c1c6c410a66996b2d60d5172189b5a5ec8100842 test: add reason checks for non-standard txs in test_IsStandard (Sebastian Falbesoner) Pull request description: While taking a look at #17272 I noticed that for some reason the unit test `test_IsStandard` (which was not adapted to the policy change in the referenced PR commits) didn't fail as expected: https://github.com/bitcoin/bitcoin/blob/6a97e8a060f7632bbaee27d3de8035dc6ebe3895/src/test/transaction_tests.cpp#L758-L762 It turned out that `IsStandardTx()` returned `"dust"` as rejection reason (instead of the expected `"multi-op-return"`), leading to the conclusion that https://github.com/bitcoin/bitcoin/pull/17272/commits/5fe6f052bd37a16b2849e05f5cf18d7e194bc705 erroneously performs the `IsDust()` check also for TX_NULL_DATA transactions. To avoid cases like this in the future, this PR makes the unit test `test_IsStandard` more strict by also checking for the concrete reason after each occurence of `IsStandardTx()` returning false. ACKs for top commit: instagibbs: utACK https://github.com/bitcoin/bitcoin/pull/17299/commits/c1c6c410a66996b2d60d5172189b5a5ec8100842 Tree-SHA512: c7419884cc52977c73f8f8c476eaebed80ba7bda4d03509d3f46dd977be911389f7b53daefa5ef31d2f7df9402243152e01e83f1b8a9fb300c19d1a0f69a89a9
Diffstat (limited to 'src/psbt.h')
0 files changed, 0 insertions, 0 deletions