diff options
author | Chris Moore <dooglus@gmail.com> | 2018-03-01 12:55:01 -0800 |
---|---|---|
committer | Chris Moore <dooglus@gmail.com> | 2018-03-01 13:27:13 -0800 |
commit | ee041196fce27b384b09e4556bceaac20ffd8deb (patch) | |
tree | 7d6fe275486fc7c9e35eafe44e612873241ed703 | |
parent | 90a0aed51194ad82da8e011b96f9561c685e40b7 (diff) |
Show a transaction's virtual size in its details dialog.
-rw-r--r-- | src/qt/transactiondesc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index c1d28be0ab..6f30e56327 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -17,6 +17,7 @@ #include <util.h> #include <wallet/db.h> #include <wallet/wallet.h> +#include <policy/policy.h> #include <stdint.h> #include <string> @@ -241,6 +242,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco strHTML += "<b>" + tr("Transaction ID") + ":</b> " + rec->getTxID() + "<br>"; strHTML += "<b>" + tr("Transaction total size") + ":</b> " + QString::number(wtx.tx->GetTotalSize()) + " bytes<br>"; + strHTML += "<b>" + tr("Transaction virtual size") + ":</b> " + QString::number(GetVirtualTransactionSize(*wtx.tx)) + " bytes<br>"; strHTML += "<b>" + tr("Output index") + ":</b> " + QString::number(rec->getOutputIndex()) + "<br>"; // Message from normal bitcoin:URI (bitcoin:123...?message=example) |