HomePhabricator

[testonly] [wallet] use P2WPKH change output if any destination is P2WPKH or…

Description

[testonly] [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH

Summary:
Only if -changetype is not set and -addresstype is not "legacy".

Implement some of the test changes from PR12119 . Basically stripped everything that is segwit realted, which is almost everything. The 5th node is now redundant.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
Sjors Provoost <sjors@sprovoost.nl>Authored on Jan 23 2018, 16:56
deadalnixCommitted on May 19 2020, 12:19
abc-botPushed on May 19 2020, 12:20
Reviewer
Restricted Project
Differential Revision
D6134: [testonly] [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH
Parents
rSTAGING87f67834ec77: Add address_types test
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/20268, tag: phabricator/base/20263, tag: phabricator/base/20262