Page MenuHomePhabricator

wallet: fix importdescriptor silent fail
ClosedPublic

Authored by PiRK on Dec 22 2021, 09:02.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC1975ab79f014: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable