Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiontablemodel.cpp
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | TransactionRecord *index(interfaces::Wallet &wallet, int idx) { | ||||
// stuck if the core is holding the locks for a longer time - for | // stuck if the core is holding the locks for a longer time - for | ||||
// example, during a wallet rescan. | // example, during a wallet rescan. | ||||
// | // | ||||
// If a status update is needed (blocks came in since last check), | // If a status update is needed (blocks came in since last check), | ||||
// update the status of this transaction from the wallet. Otherwise, | // update the status of this transaction from the wallet. Otherwise, | ||||
// simply re-use the cached status. | // simply re-use the cached status. | ||||
interfaces::WalletTxStatus wtx; | interfaces::WalletTxStatus wtx; | ||||
int numBlocks; | int numBlocks; | ||||
if (wallet.tryGetTxStatus(rec->txid, wtx, numBlocks) && | int64_t block_time; | ||||
if (wallet.tryGetTxStatus(rec->txid, wtx, numBlocks, block_time) && | |||||
rec->statusUpdateNeeded(numBlocks)) { | rec->statusUpdateNeeded(numBlocks)) { | ||||
rec->updateStatus(wtx, numBlocks); | rec->updateStatus(wtx, numBlocks, block_time); | ||||
} | } | ||||
return rec; | return rec; | ||||
} | } | ||||
return 0; | return 0; | ||||
} | } | ||||
QString describe(interfaces::Node &node, interfaces::Wallet &wallet, | QString describe(interfaces::Node &node, interfaces::Wallet &wallet, | ||||
TransactionRecord *rec, int unit) { | TransactionRecord *rec, int unit) { | ||||
▲ Show 20 Lines • Show All 571 Lines • Show Last 20 Lines |