This is a refactor to set the status to SUCCESS
(like it is done in MakeBerkeleyDatabase
, too). It also happens to fix a false positive valgrind warning (tested with bionic-gcc and focal-clang):
0 node1 stderr ==28149== Conditional jump or move depends on uninitialised value(s)
1==28149== at 0x464471: LoadWallets(interfaces::Chain&) (load.cpp:105)
2==28149== by 0x44BFBA: interfaces::(anonymous namespace)::WalletClientImpl::load() (wallet.cpp:510)
3==28149== by 0x1640F9: AppInitMain(util::Ref const&, NodeContext&, interfaces::BlockAndHeaderTipInfo*) (init.cpp:1815)
4==28149== by 0x144F3F: AppInit (bitcoind.cpp:142)
5==28149== by 0x144F3F: main (bitcoind.cpp:172)
6==28149==
7{
8 <insert_a_suppression_name_here>
9 Memcheck:Cond
10 fun:_Z11LoadWalletsRN10interfaces5ChainE
11 fun:_ZN10interfaces12_GLOBAL__N_116WalletClientImpl4loadEv
12 fun:_Z11AppInitMainRKN4util3RefER11NodeContextPN10interfaces21BlockAndHeaderTipInfoE
13 fun:AppInit
14 fun:main
15}
16
17TEST | STATUS | DURATION
18
19wallet_hd.py --descriptors | ✖ Failed | 69 s