Page MenuHomePhabricator

Have importaddress use ImportScripts and ImportScriptPubKeys
ClosedPublic

Authored by deadalnix on Jun 6 2020, 18:01.

Details

Summary

Also removes the now unused ImportAddress and ImportScript from rpcdump.cpp

Behavior changes:

  • No errors will be thrown when the script or key already exists in the wallet.
  • If the key or script is already in the wallet, their labels will be updated.

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

Depends on D6413

Test Plan
ninja all check-all

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Jun 7 2020, 21:02