Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 628 Lines • ▼ Show 20 Lines | DBErrors CWalletDB::LoadWallet(CWallet *pwallet) { | ||||
if (wss.fAnyUnordered) { | if (wss.fAnyUnordered) { | ||||
result = pwallet->ReorderTransactions(); | result = pwallet->ReorderTransactions(); | ||||
} | } | ||||
pwallet->laccentries.clear(); | pwallet->laccentries.clear(); | ||||
ListAccountCreditDebit("*", pwallet->laccentries); | ListAccountCreditDebit("*", pwallet->laccentries); | ||||
for (CAccountingEntry &entry : pwallet->laccentries) { | for (CAccountingEntry &entry : pwallet->laccentries) { | ||||
pwallet->wtxOrdered.insert(std::make_pair( | pwallet->wtxOrdered.insert( | ||||
entry.nOrderPos, CWallet::TxPair((CWalletTx *)0, &entry))); | std::make_pair(entry.nOrderPos, CWallet::TxPair(nullptr, &entry))); | ||||
} | } | ||||
return result; | return result; | ||||
} | } | ||||
DBErrors CWalletDB::FindWalletTx(std::vector<TxId> &txIds, | DBErrors CWalletDB::FindWalletTx(std::vector<TxId> &txIds, | ||||
std::vector<CWalletTx> &vWtx) { | std::vector<CWalletTx> &vWtx) { | ||||
bool fNoncriticalErrors = false; | bool fNoncriticalErrors = false; | ||||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |