HomePhabricator

wallet: fix importdescriptor silent fail

Description

wallet: fix importdescriptor silent fail

Summary:
Currently importdescriptor command will successfully import a descriptor with hardened derivations into a watch-only wallet while silently failing to expand the descriptor to fill the cache. This leads to a broken wallet state and failure to load such wallet due to missing cache on subsequent restart.

This is a backport of core#20153

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Ivan Metlushko <metlushko@gmail.com>Authored on Oct 15 2020, 11:02
PiRKCommitted on Dec 22 2021, 13:37
PiRKPushed on Dec 22 2021, 13:37
Reviewer
Restricted Project
Differential Revision
D10721: wallet: fix importdescriptor silent fail
Parents
rABCc50d2ac0715c: net, rpc, test, bugfix: update GetNetworkName, GetNetworksInfo, regression tests
Branches
Unknown
Tags
Unknown