Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 601 Lines • ▼ Show 20 Lines | try { | ||||
ssKey >> strKey; | ssKey >> strKey; | ||||
ssValue >> strValue; | ssValue >> strValue; | ||||
pwallet->LoadDestData( | pwallet->LoadDestData( | ||||
DecodeDestination(strAddress, pwallet->GetChainParams()), | DecodeDestination(strAddress, pwallet->GetChainParams()), | ||||
strKey, strValue); | strKey, strValue); | ||||
} else if (strType == DBKeys::HDCHAIN) { | } else if (strType == DBKeys::HDCHAIN) { | ||||
CHDChain chain; | CHDChain chain; | ||||
ssValue >> chain; | ssValue >> chain; | ||||
pwallet->GetOrCreateLegacyScriptPubKeyMan()->SetHDChain(chain, | pwallet->GetOrCreateLegacyScriptPubKeyMan()->LoadHDChain(chain); | ||||
true); | |||||
} else if (strType == DBKeys::FLAGS) { | } else if (strType == DBKeys::FLAGS) { | ||||
uint64_t flags; | uint64_t flags; | ||||
ssValue >> flags; | ssValue >> flags; | ||||
if (!pwallet->SetWalletFlags(flags, true)) { | if (!pwallet->SetWalletFlags(flags, true)) { | ||||
strErr = "Error reading wallet database: Unknown non-tolerable " | strErr = "Error reading wallet database: Unknown non-tolerable " | ||||
"wallet flags found"; | "wallet flags found"; | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 531 Lines • Show Last 20 Lines |