Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactionrecord.cpp
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | if (nNet > Amount::zero() || wtx.is_coinbase) { | ||||
parts.last().involvesWatchAddress = involvesWatchAddress; | parts.last().involvesWatchAddress = involvesWatchAddress; | ||||
} | } | ||||
} | } | ||||
return parts; | return parts; | ||||
} | } | ||||
void TransactionRecord::updateStatus(const interfaces::WalletTxStatus &wtx, | void TransactionRecord::updateStatus(const interfaces::WalletTxStatus &wtx, | ||||
int numBlocks, int64_t adjustedTime) { | int numBlocks) { | ||||
// Determine transaction status | // Determine transaction status | ||||
// Sort order, unrecorded transactions sort to the top | // Sort order, unrecorded transactions sort to the top | ||||
status.sortKey = strprintf("%010d-%01d-%010u-%03d", wtx.block_height, | status.sortKey = strprintf("%010d-%01d-%010u-%03d", wtx.block_height, | ||||
wtx.is_coinbase ? 1 : 0, wtx.time_received, idx); | wtx.is_coinbase ? 1 : 0, wtx.time_received, idx); | ||||
status.countsForBalance = wtx.is_trusted && !(wtx.blocks_to_maturity > 0); | status.countsForBalance = wtx.is_trusted && !(wtx.blocks_to_maturity > 0); | ||||
status.depth = wtx.depth_in_main_chain; | status.depth = wtx.depth_in_main_chain; | ||||
status.cur_num_blocks = numBlocks; | status.cur_num_blocks = numBlocks; | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |