diff options
| author | Chris Moore <[email protected]> | 2018-03-01 12:55:01 -0800 |
|---|---|---|
| committer | Chris Moore <[email protected]> | 2018-03-01 13:27:13 -0800 |
| commit | ee041196fce27b384b09e4556bceaac20ffd8deb (patch) | |
| tree | 7d6fe275486fc7c9e35eafe44e612873241ed703 /src | |
| parent | Merge #12182: Remove useless string initializations (diff) | |
| download | discoin-ee041196fce27b384b09e4556bceaac20ffd8deb.tar.xz discoin-ee041196fce27b384b09e4556bceaac20ffd8deb.zip | |
Show a transaction's virtual size in its details dialog.
Diffstat (limited to 'src')
| -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 c1d28be0a..6f30e5632 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) |