HomePhabricator

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

Description

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

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

This is a backport of Core PR12119

Test Plan:

make check

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox

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

Details

Provenance
Sjors Provoost <sjors@sprovoost.nl>Authored on Jan 23 2018, 16:56
deadalnixCommitted on Jul 15 2019, 19:20
deadalnixPushed on Jul 15 2019, 19:20
Reviewer
Restricted Project
Differential Revision
D3661: [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH
Parents
rABC58bcb91efc72: [qt] receive tab: bech32 address opt-in checkbox
Branches
Unknown
Tags
Unknown