Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiontablemodel.cpp
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | TransactionRecord *index(interfaces::Wallet &wallet, int idx) { | ||||
int numBlocks; | int numBlocks; | ||||
int64_t block_time; | int64_t block_time; | ||||
if (wallet.tryGetTxStatus(rec->txid, wtx, numBlocks, block_time) && | if (wallet.tryGetTxStatus(rec->txid, wtx, numBlocks, block_time) && | ||||
rec->statusUpdateNeeded(numBlocks)) { | rec->statusUpdateNeeded(numBlocks)) { | ||||
rec->updateStatus(wtx, numBlocks, block_time); | rec->updateStatus(wtx, numBlocks, block_time); | ||||
} | } | ||||
return rec; | return rec; | ||||
} | } | ||||
return 0; | return nullptr; | ||||
} | } | ||||
QString describe(interfaces::Node &node, interfaces::Wallet &wallet, | QString describe(interfaces::Node &node, interfaces::Wallet &wallet, | ||||
TransactionRecord *rec, int unit) { | TransactionRecord *rec, int unit) { | ||||
return TransactionDesc::toHTML(node, wallet, rec, unit); | return TransactionDesc::toHTML(node, wallet, rec, unit); | ||||
} | } | ||||
QString getTxHex(interfaces::Wallet &wallet, TransactionRecord *rec) { | QString getTxHex(interfaces::Wallet &wallet, TransactionRecord *rec) { | ||||
▲ Show 20 Lines • Show All 571 Lines • Show Last 20 Lines |