HomePhabricator

Have importprivkey use CWallet's ImportPrivKeys, ImportScripts, and…

Description

Have importprivkey use CWallet's ImportPrivKeys, ImportScripts, and ImportScriptPubKeys

Summary:
Behavior changes:

  • If we already have the key, it's wpkh script will still be added, although it should already be there

Tis is a partial backport of Core PR16301 : https://github.com/bitcoin/bitcoin/pull/16301/commits/c6a827424711333f6f66cf5f9d79e0e6884769de

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on Jun 27 2019, 21:53
deadalnixCommitted on Jun 7 2020, 21:30
deadalnixPushed on Jun 7 2020, 21:30
Reviewer
Restricted Project
Differential Revision
D6412: Have importprivkey use CWallet's ImportPrivKeys, ImportScripts, and ImportScriptPubKeys
Parents
rABC3411c5a89e94: [backport#16551] test: Test that low difficulty chain fork is rejected
Branches
Unknown
Tags
Unknown