HomePhabricator

test: MiniWallet: introduce enum type for output mode

Description

test: MiniWallet: introduce enum type for output mode

Summary:

For the MiniWallet constructor, the two boolean parameters
"raw_script" and "use_p2pk" are replaced by a single parameter of the
newly introduced type MiniWalletMode (derived by enum.Enum), which can
hold the following values:
	- ADDRESS_OP_TRUE
	- RAW_OP_TRUE
	- RAW_P2PK

Backport of core#22048.
Depends on D16407.

Note that RAW_OP_TRUE is of no interest for use and wasn't ported.

Test Plan:

ninja check-functional

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
Sebastian Falbesoner <sebastian.falbesoner@gmail.com>Authored on May 24 2021, 13:54
FabienCommitted on Wed, Jul 3, 06:41
FabienPushed on Wed, Jul 3, 06:41
Reviewer
Restricted Project
Differential Revision
D16408: test: MiniWallet: introduce enum type for output mode
Parents
rABC185f0b1bcfac: test: add P2PK support to MiniWallet
Branches
Unknown
Tags
Unknown