HomePhabricator

Have importpubkey use CWallet's ImportScriptPubKeys and ImportPubKeys functions

Description

Have importpubkey use CWallet's ImportScriptPubKeys and ImportPubKeys functions

Summary:
Behavior changes:

  • If any scripts for the pubkey were already in the wallet, their timestamps will be set to 1 and label updated

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

Depends on D6410

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on Jun 27 2019, 22:09
deadalnixCommitted on Jun 7 2020, 21:40
deadalnixPushed on Jun 7 2020, 21:40
Reviewer
Restricted Project
Differential Revision
D6413: Have importpubkey use CWallet's ImportScriptPubKeys and ImportPubKeys functions
Parents
rABC7952f06f906c: Have importprivkey use CWallet's ImportPrivKeys, ImportScripts, and…
Branches
Unknown
Tags
Unknown