HomePhabricator

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

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

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

Committed
deadalnixJul 15 2019, 19:20
Pushed
deadalnixJul 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