MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetDecryptedHDChain

Method GetDecryptedHDChain

src/wallet.cpp:1344–1363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342}
1343
1344bool CWallet::GetDecryptedHDChain(CHDChain& hdChainRet)
1345{
1346 LOCK(cs_wallet);
1347
1348 CHDChain hdChainTmp;
1349 if (!GetHDChain(hdChainTmp)) {
1350 return false;
1351 }
1352
1353 if (!DecryptHDChain(hdChainTmp))
1354 return false;
1355
1356 // make sure seed matches this chain
1357 if (hdChainTmp.GetID() != hdChainTmp.GetSeedHash())
1358 return false;
1359
1360 hdChainRet = hdChainTmp;
1361
1362 return true;
1363}
1364
1365bool CWallet::IsHDEnabled()
1366{

Callers 2

dumphdinfoFunction · 0.80
dumpwalletFunction · 0.80

Calls 2

GetSeedHashMethod · 0.80
GetIDMethod · 0.45

Tested by

no test coverage detected