Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiontablemodel.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Query entire wallet anew from core. | * Query entire wallet anew from core. | ||||
*/ | */ | ||||
void refreshWallet() { | void refreshWallet() { | ||||
qDebug() << "TransactionTablePriv::refreshWallet"; | qDebug() << "TransactionTablePriv::refreshWallet"; | ||||
cachedWallet.clear(); | cachedWallet.clear(); | ||||
LOCK2(cs_main, wallet->cs_wallet); | LOCK2(cs_main, wallet->cs_wallet); | ||||
for (const std::pair<TxId, CWalletTx> &p : wallet->mapWallet) { | for (const auto &entry : wallet->mapWallet) { | ||||
if (TransactionRecord::showTransaction(p.second)) { | if (TransactionRecord::showTransaction(entry.second)) { | ||||
cachedWallet.append( | cachedWallet.append(TransactionRecord::decomposeTransaction( | ||||
TransactionRecord::decomposeTransaction(wallet, p.second)); | wallet, entry.second)); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Update our model of the wallet incrementally, to synchronize our model of | * Update our model of the wallet incrementally, to synchronize our model of | ||||
* the wallet with that of the core. | * the wallet with that of the core. | ||||
* Call with transaction that was added, removed or changed. | * Call with transaction that was added, removed or changed. | ||||
▲ Show 20 Lines • Show All 713 Lines • Show Last 20 Lines |