From 1b94874d4e604f51e3e3ca2bd4e9ab68280dc651 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sat, 26 Jul 2014 21:55:43 +0400 Subject: [PATCH] Remove old maturity handling code --- src/qt/transactionrecord.cpp | 25 ------------------------- 1 files changed, 0 insertions(+), 25 deletions(-) diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index bd6155b..c922188 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -205,31 +205,6 @@ void TransactionRecord::updateStatus(const CWalletTx &wtx) // For generated transactions, determine maturity if(type == TransactionRecord::Generated) { -/* - int64 nCredit = wtx.GetCredit(true); - if (nCredit == 0) - { - status.maturity = TransactionStatus::Immature; - - if (wtx.IsInMainChain()) - { - status.matures_in = wtx.GetBlocksToMaturity(); - - // Check if the block was requested by anyone - if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0) - status.maturity = TransactionStatus::MaturesWarning; - } - else - { - status.maturity = TransactionStatus::NotAccepted; - } - } - else - { - status.maturity = TransactionStatus::Mature; - } -*/ - if (wtx.GetBlocksToMaturity() > 0) { status.maturity = TransactionStatus::Immature; -- 1.7.1