Query entire wallet anew from core. */
| 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. |
no test coverage detected