Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 535 Lines • ▼ Show 20 Lines | if (wss.nFileVersion < CLIENT_VERSION) { | ||||
// Update | // Update | ||||
WriteVersion(CLIENT_VERSION); | WriteVersion(CLIENT_VERSION); | ||||
} | } | ||||
if (wss.fAnyUnordered) { | if (wss.fAnyUnordered) { | ||||
result = pwallet->ReorderTransactions(); | result = pwallet->ReorderTransactions(); | ||||
} | } | ||||
// Upgrade all of the wallet keymetadata to have the hd master key id | |||||
// This operation is not atomic, but if it fails, updated entries are still | |||||
// backwards compatible with older software | |||||
try { | |||||
pwallet->UpgradeKeyMetadata(); | |||||
} catch (...) { | |||||
result = DBErrors::CORRUPT; | |||||
} | |||||
return result; | return result; | ||||
} | } | ||||
DBErrors WalletBatch::FindWalletTx(std::vector<TxId> &txIds, | DBErrors WalletBatch::FindWalletTx(std::vector<TxId> &txIds, | ||||
std::vector<CWalletTx> &vWtx) { | std::vector<CWalletTx> &vWtx) { | ||||
DBErrors result = DBErrors::LOAD_OK; | DBErrors result = DBErrors::LOAD_OK; | ||||
try { | try { | ||||
▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines |