Page MenuHomePhabricator

test: MiniWallet: introduce enum type for output mode
ClosedPublic

Authored by Fabien on Jul 2 2024, 12:27.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCb92367fd8163: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Jul 2 2024, 12:27
Fabien planned changes to this revision.Jul 2 2024, 12:46
PiRK requested changes to this revision.Jul 2 2024, 14:40
PiRK added a subscriber: PiRK.
PiRK added inline comments.
test/functional/test_framework/wallet.py
53–54 ↗(On Diff #48465)
This revision now requires changes to proceed.Jul 2 2024, 14:40
test/functional/test_framework/wallet.py
57 ↗(On Diff #48465)
This revision is now accepted and ready to land.Jul 2 2024, 20:01