HomePhabricator

test: add unit test for non-standard bare multisig txs

Description

test: add unit test for non-standard bare multisig txs

Summary:

The function IsStandardTx() returns rejection reason "bare-multisig" if the
transaction has a bare multisig output and the policy flag fIsBareMultisigStd
is false (set by the boolean command-line argument "-permitbaremultisig" -- for
the unit test, we simply set the global flag variable directly).

This is a backport of Core PR17502

Test Plan: ninja && ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D8308

Details

Provenance
Sebastian Falbesoner <sebastian.falbesoner@gmail.com>Authored on Nov 7 2020, 14:57
PiRKCommitted on Nov 7 2020, 14:57
abc-botPushed on Nov 7 2020, 15:03
Reviewer
Restricted Project
Differential Revision
D8308: test: add unit test for non-standard bare multisig txs
Parents
rABCdcecb44d882d: Add the BCHN network AUR packages to the automated version bump
Branches
Unknown
Tags
Unknown