Page MenuHomePhabricator

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

Authored by deadalnix on Jul 12 2019, 13:37.

Details

Summary

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

This is a backport of Core PR12119

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
pr12119
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6835
Build 11717: Bitcoin ABC Buildbot (legacy)
Build 11716: arc lint + arc unit

Event Timeline

Why backport this? We haven't been supporting other address types (especially bech32).

src/wallet/wallet.cpp
3010

iirc LearnRelatedScripts wasn't backported either.

Talked about it offline. This isn't about backporting for usefulness, but rather paring down ownership on parts of the codebase that we do not want to own at this time.

This revision is now accepted and ready to land.Jul 15 2019, 16:24