Page MenuHomePhabricator

wallet: descriptor wallet cleanups
ClosedPublic

Authored by PiRK on Feb 17 2021, 11:44.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCdaabc6926d49: wallet: descriptor wallet cleanups
Summary

rpc: createwallet warning that descriptor wallets are experimental

Remove unimplemented SetCrypted from DescriptorScriptPubKeyMan

Change SetType to SetInternal and remove m_address_type

m_address_type was used for two things:

  1. Determine the type of descriptor to generate during SetupDescriptorGeneration
  2. Sanity check during GetNewDestination.

There is no need to have this variable to accomplish those things.

  1. Add a argument to SetupDescriptorGeneration indicating the address type to use
  2. Use Descriptor::GetOutputType for the sanity check.

This is a backport of Core PR18787

It does not include the release notes from the original backport.

Test Plan

ninja all check-all

Event Timeline

PiRK requested review of this revision.Feb 17 2021, 11:45
PiRK retitled this revision from wallet: descriptor wallet release notes and cleanups to wallet: descriptor wallet cleanups.Feb 18 2021, 07:05
majcosta requested changes to this revision.Feb 19 2021, 17:30
majcosta added a subscriber: majcosta.
majcosta added inline comments.
src/wallet/scriptpubkeyman.cpp
1636–1640 ↗(On Diff #27717)

something fishy going on here

This revision now requires changes to proceed.Feb 19 2021, 17:30

remove accidentaly duplicated line

This revision is now accepted and ready to land.Feb 22 2021, 18:36
This revision was automatically updated to reflect the committed changes.