Page MenuHomePhabricator

[backport#17261 3/13] Refactor: Allow LegacyScriptPubKeyMan to be null
ClosedPublic

Authored by majcosta on Oct 9 2020, 14:55.

Details

Summary

In CWallet::LoadWallet, use this to detect and empty wallet with no keys

This commit does not change behavior.


https://github.com/bitcoin/bitcoin/pull/17261/commits/eb81fc3ee58d3e88af36d8091b9e4017a8603b3c

Depends on D7838

Partial backport of Core PR17261

Test Plan
export CC=clang CXX=clang++; cmake -GNinja -DCMAKE_BUILD_TYPE=Debug
ninja all check check-functional

Diff Detail

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

Event Timeline

majcosta requested review of this revision.Oct 9 2020, 14:55
Fabien requested changes to this revision.Oct 9 2020, 16:04
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/bench/coin_selection.cpp
113 ↗(On Diff #24457)

This one is missing the SetupLegacyPubKeyMan()

src/wallet/test/coinselector_tests.cpp
144 ↗(On Diff #24457)

m_wallet.SetupLegacyScriptPubKeyMan() ?

293 ↗(On Diff #24457)

This part differ from the PR, can you look if there is a backport missing ?

716 ↗(On Diff #24457)

Dito, m_wallet.SetupLegacyScriptPubKeyMan() ?

This revision now requires changes to proceed.Oct 9 2020, 16:04
majcosta marked 3 inline comments as done.

corrected missing calls to SetupLegacyScriptPubKeyMan().

one last one must remain missing since this backport is being done before PR17290 which was reverted recently

This revision is now accepted and ready to land.Oct 10 2020, 18:34