HomePhabricator

Implicitly know about P2WPKH redeemscripts

Description

Implicitly know about P2WPKH redeemscripts

Summary:
Make CKeyStore automatically known about the redeemscripts necessary for P2SH-P2WPKH
(and due to the extra checks in IsMine, also P2WPKH) spending.

This is a partial backport of Core PR11403 : https://github.com/bitcoin/bitcoin/pull/11403/commits/f37c64e477d679853a4076f2f7888568bb034e90

Test Plan:

make check
./test/functional/test_runner.py

Reviewers: #bitcoin_abc, markblundeberg

Reviewed By: #bitcoin_abc, markblundeberg

Subscribers: markblundeberg

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

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Dec 1 2017, 00:49
deadalnixCommitted on May 28 2019, 00:02
deadalnixPushed on May 28 2019, 00:49
Reviewer
Restricted Project
Differential Revision
D3132: Implicitly know about P2WPKH redeemscripts
Parents
rSTAGING6c60601ce0bb: Use GetKeyForDestination in various RPCs
Branches
Unknown
Tags
Unknown