MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / refreshWallet

Method refreshWallet

src/qt/transactiontablemodel.cpp:76–87  ·  view source on GitHub ↗

Query entire wallet anew from core. */

Source from the content-addressed store, hash-verified

74 /* Query entire wallet anew from core.
75 */
76 void refreshWallet(interfaces::Wallet& wallet)
77 {
78 qDebug() << "TransactionTablePriv::refreshWallet";
79 cachedWallet.clear();
80 {
81 for (const auto& wtx : wallet.getWalletTxs()) {
82 if (TransactionRecord::showTransaction()) {
83 cachedWallet.append(TransactionRecord::decomposeTransaction(wtx));
84 }
85 }
86 }
87 }
88
89 /* Update our model of the wallet incrementally, to synchronize our model of the wallet
90 with that of the core.

Callers 1

TransactionTableModelMethod · 0.80

Calls 2

getWalletTxsMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected