Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 488 Lines • ▼ Show 20 Lines | try { | ||||
} | } | ||||
} else if (strType == "orderposnext") { | } else if (strType == "orderposnext") { | ||||
ssValue >> pwallet->nOrderPosNext; | ssValue >> pwallet->nOrderPosNext; | ||||
} else if (strType == "destdata") { | } else if (strType == "destdata") { | ||||
std::string strAddress, strKey, strValue; | std::string strAddress, strKey, strValue; | ||||
ssKey >> strAddress; | ssKey >> strAddress; | ||||
ssKey >> strKey; | ssKey >> strKey; | ||||
ssValue >> strValue; | ssValue >> strValue; | ||||
if (!pwallet->LoadDestData( | pwallet->LoadDestData( | ||||
DecodeDestination(strAddress, pwallet->chainParams), strKey, | DecodeDestination(strAddress, pwallet->chainParams), strKey, | ||||
strValue)) { | strValue); | ||||
strErr = "Error reading wallet database: LoadDestData failed"; | |||||
return false; | |||||
} | |||||
} else if (strType == "hdchain") { | } else if (strType == "hdchain") { | ||||
CHDChain chain; | CHDChain chain; | ||||
ssValue >> chain; | ssValue >> chain; | ||||
if (!pwallet->SetHDChain(chain, true)) { | pwallet->SetHDChain(chain, true); | ||||
strErr = "Error reading wallet database: SetHDChain failed"; | |||||
return false; | |||||
} | |||||
} else if (strType != "bestblock" && strType != "bestblock_nomerkle") { | } else if (strType != "bestblock" && strType != "bestblock_nomerkle") { | ||||
wss.m_unknown_records++; | wss.m_unknown_records++; | ||||
} | } | ||||
} catch (...) { | } catch (...) { | ||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 370 Lines • Show Last 20 Lines |