From ee041196fce27b384b09e4556bceaac20ffd8deb Mon Sep 17 00:00:00 2001 From: Chris Moore Date: Thu, 1 Mar 2018 12:55:01 -0800 Subject: [PATCH] Show a transaction's virtual size in its details dialog. --- src/qt/transactiondesc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index c1d28be0a..6f30e5632 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -241,6 +242,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco strHTML += "" + tr("Transaction ID") + ": " + rec->getTxID() + "
"; strHTML += "" + tr("Transaction total size") + ": " + QString::number(wtx.tx->GetTotalSize()) + " bytes
"; + strHTML += "" + tr("Transaction virtual size") + ": " + QString::number(GetVirtualTransactionSize(*wtx.tx)) + " bytes
"; strHTML += "" + tr("Output index") + ": " + QString::number(rec->getOutputIndex()) + "
"; // Message from normal bitcoin:URI (bitcoin:123...?message=example)