Since #15263, pubkeys are no longer imported for non-PKH (or WPKH, or any wrapped form of those) outputs, as that would incorrectly mark outputs to single-key versions of multisig policies as watched.
As a side effect, this change also caused origin info not to be imported anymore for multisig policies.
Fix this by plumbing through the full pubkey information for origins in FlatSigningProvider, and then importing all origin info we have in importmulti (knowing more never hurts, and additional origin information has no negative consequences like importing the pubkeys themselves).
Keep full pubkeys in FlatSigningProvider::origins9a93c91c88
Import all origin info in importmulti; even for non-importing pubkeys6e597001a4
DrahtBot added the label RPC/REST/ZMQ on Apr 4, 2019
DrahtBot added the label Tests on Apr 4, 2019
DrahtBot added the label Wallet on Apr 4, 2019
sipa
commented at 8:02 PM on April 4, 2019:
member
#15741 (Batch write imported stuff in importmulti by achow101)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
gwillen
commented at 9:02 PM on April 4, 2019:
contributor
utACK, thanks for the quick fix!
achow101
commented at 10:22 PM on April 4, 2019:
member
utACK6e597001a4fc1ba837f3f23cfd7f2d65c3d58104
sipa
commented at 3:26 PM on April 6, 2019:
member
Added an extra commit to address #15742. Can you test, @gwillen?
Take non-importing keys into account for spendability warning in descriptor importb5d3987724
sipa force-pushed on Apr 6, 2019
gwillen
commented at 9:56 PM on April 8, 2019:
contributor
@sipatACK! Confirmed this fixes both problems. Thanks again!
sipa added the label Bug on Apr 9, 2019
sipa
commented at 1:54 AM on April 9, 2019:
member
I'm marking this as a bug, as the current importmulti output is sometimes just wrong (it may tell you your import is spendable while it isn't). I don't think it's serious enough to warrant an 0.18.0rc4, but if there is one, maybe we want it included.
meshcollider
commented at 12:32 PM on April 9, 2019:
contributor
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:14 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me