Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 605 Lines • ▼ Show 20 Lines | try { | ||||
strKey, strValue); | strKey, strValue); | ||||
} else if (strType == DBKeys::HDCHAIN) { | } else if (strType == DBKeys::HDCHAIN) { | ||||
CHDChain chain; | CHDChain chain; | ||||
ssValue >> chain; | ssValue >> chain; | ||||
pwallet->GetOrCreateLegacyScriptPubKeyMan()->LoadHDChain(chain); | pwallet->GetOrCreateLegacyScriptPubKeyMan()->LoadHDChain(chain); | ||||
} 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->LoadWalletFlags(flags)) { | ||||
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; | ||||
} | } | ||||
} else if (strType == DBKeys::OLD_KEY) { | } else if (strType == DBKeys::OLD_KEY) { | ||||
strErr = "Found unsupported 'wkey' record, try loading with " | strErr = "Found unsupported 'wkey' record, try loading with " | ||||
"version 0.20"; | "version 0.20"; | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 525 Lines • Show Last 20 Lines |