diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-14 11:48:22 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-14 11:24:58 +0100 |
commit | dddd05e7a3389fcbd90bb4acdfe1f59945d9f381 (patch) | |
tree | bcb0cc0f58d44fe3f03e6d9a891ac18651c86913 /src/qt/transactionrecord.cpp | |
parent | 807169e10b4a18324356ed6ee4d69587b96a7c70 (diff) |
qt: Treat unconfirmed txs as unconfirmed
Diffstat (limited to 'src/qt/transactionrecord.cpp')
-rw-r--r-- | src/qt/transactionrecord.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index 5386569973..26144ba197 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -179,21 +179,8 @@ void TransactionRecord::updateStatus(const interfaces::WalletTxStatus& wtx, cons status.depth = wtx.depth_in_main_chain; status.m_cur_block_hash = block_hash; - const bool up_to_date = ((int64_t)QDateTime::currentMSecsSinceEpoch() / 1000 - block_time < MAX_BLOCK_TIME_GAP); - if (up_to_date && !wtx.is_final) { - if (wtx.lock_time < LOCKTIME_THRESHOLD) { - status.status = TransactionStatus::OpenUntilBlock; - status.open_for = wtx.lock_time - numBlocks; - } - else - { - status.status = TransactionStatus::OpenUntilDate; - status.open_for = wtx.lock_time; - } - } // For generated transactions, determine maturity - else if(type == TransactionRecord::Generated) - { + if (type == TransactionRecord::Generated) { if (wtx.blocks_to_maturity > 0) { status.status = TransactionStatus::Immature; |