Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 709 Lines • ▼ Show 20 Lines | try { | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (!strErr.empty()) { | if (!strErr.empty()) { | ||||
pwallet->WalletLogPrintf("%s\n", strErr); | pwallet->WalletLogPrintf("%s\n", strErr); | ||||
} | } | ||||
} | } | ||||
pcursor->close(); | pcursor->close(); | ||||
} catch (const boost::thread_interrupted &) { | |||||
throw; | |||||
} catch (...) { | } catch (...) { | ||||
result = DBErrors::CORRUPT; | result = DBErrors::CORRUPT; | ||||
} | } | ||||
// Set the active ScriptPubKeyMans | // Set the active ScriptPubKeyMans | ||||
for (auto spk_man_pair : wss.m_active_external_spks) { | for (auto spk_man_pair : wss.m_active_external_spks) { | ||||
pwallet->SetActiveScriptPubKeyMan( | pwallet->SetActiveScriptPubKeyMan( | ||||
spk_man_pair.second, spk_man_pair.first, /* internal */ false, | spk_man_pair.second, spk_man_pair.first, /* internal */ false, | ||||
▲ Show 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | try { | ||||
CWalletTx wtx(nullptr /* pwallet */, MakeTransactionRef()); | CWalletTx wtx(nullptr /* pwallet */, MakeTransactionRef()); | ||||
ssValue >> wtx; | ssValue >> wtx; | ||||
txIds.push_back(txid); | txIds.push_back(txid); | ||||
vWtx.push_back(wtx); | vWtx.push_back(wtx); | ||||
} | } | ||||
} | } | ||||
pcursor->close(); | pcursor->close(); | ||||
} catch (const boost::thread_interrupted &) { | |||||
throw; | |||||
} catch (...) { | } catch (...) { | ||||
result = DBErrors::CORRUPT; | result = DBErrors::CORRUPT; | ||||
} | } | ||||
return result; | return result; | ||||
} | } | ||||
DBErrors WalletBatch::ZapSelectTx(std::vector<TxId> &txIdsIn, | DBErrors WalletBatch::ZapSelectTx(std::vector<TxId> &txIdsIn, | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |