HomePhabricator

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

Authored by Sjors Provoost <sjors@sprovoost.nl> on Jan 23 2018, 16:56.

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

Committed
deadalnixMay 19 2020, 12:19
Pushed
deadalnixMay 19 2020, 12:19
Reviewer
Restricted Project
Differential Revision
D6134: [testonly] [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH
Parents
rABC87f67834ec77: Add address_types test
Branches
Unknown
Tags
Unknown