MCPcopy Create free account
hub / github.com/ElementsProject/elements / LoadWallet

Method LoadWallet

src/wallet/wallet.cpp:2341–2362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2339}
2340
2341DBErrors CWallet::LoadWallet()
2342{
2343 LOCK(cs_wallet);
2344
2345 DBErrors nLoadWalletRet = WalletBatch(GetDatabase()).LoadWallet(this);
2346 if (nLoadWalletRet == DBErrors::NEED_REWRITE)
2347 {
2348 if (GetDatabase().Rewrite("\x04pool"))
2349 {
2350 for (const auto& spk_man_pair : m_spk_managers) {
2351 spk_man_pair.second->RewriteDB();
2352 }
2353 }
2354 }
2355
2356 if (m_spk_managers.empty()) {
2357 assert(m_external_spk_managers.empty());
2358 assert(m_internal_spk_managers.empty());
2359 }
2360
2361 return nLoadWalletRet;
2362}
2363
2364DBErrors CWallet::ZapSelectTx(std::vector<uint256>& vHashIn, std::vector<uint256>& vHashOut)
2365{

Callers 9

MakeWalletFunction · 0.45
CreateMethod · 0.45
CreateFromDumpFunction · 0.45
WalletTestingSetupMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
CreateSyncedWalletFunction · 0.45
TestGUIFunction · 0.45
WalletBalanceFunction · 0.45

Calls 4

WalletBatchClass · 0.85
RewriteMethod · 0.45
RewriteDBMethod · 0.45
emptyMethod · 0.45

Tested by 5

WalletTestingSetupMethod · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
CreateSyncedWalletFunction · 0.36
TestGUIFunction · 0.36