MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / LoadHDChain

Function LoadHDChain

src/wallet/walletdb.cpp:421–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421bool LoadHDChain(CWallet* pwallet, DataStream& ssValue, std::string& strErr)
422{
423 LOCK(pwallet->cs_wallet);
424 try {
425 CHDChain chain;
426 ssValue >> chain;
427 pwallet->GetOrCreateLegacyDataSPKM()->LoadHDChain(chain);
428 } catch (const std::exception& e) {
429 if (strErr.empty()) {
430 strErr = e.what();
431 }
432 return false;
433 }
434 return true;
435}
436
437static DBErrors LoadWalletFlags(CWallet* pwallet, DatabaseBatch& batch) EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet)
438{

Callers 1

walletdb.cppFile · 0.85

Calls 4

LoadHDChainMethod · 0.80
emptyMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected