Skip to content

Commit ee04119

Browse files
committed
Show a transaction's virtual size in its details dialog.
1 parent 90a0aed commit ee04119

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/transactiondesc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <util.h>
1818
#include <wallet/db.h>
1919
#include <wallet/wallet.h>
20+
#include <policy/policy.h>
2021

2122
#include <stdint.h>
2223
#include <string>
@@ -241,6 +242,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
241242

242243
strHTML += "<b>" + tr("Transaction ID") + ":</b> " + rec->getTxID() + "<br>";
243244
strHTML += "<b>" + tr("Transaction total size") + ":</b> " + QString::number(wtx.tx->GetTotalSize()) + " bytes<br>";
245+
strHTML += "<b>" + tr("Transaction virtual size") + ":</b> " + QString::number(GetVirtualTransactionSize(*wtx.tx)) + " bytes<br>";
244246
strHTML += "<b>" + tr("Output index") + ":</b> " + QString::number(rec->getOutputIndex()) + "<br>";
245247

246248
// Message from normal bitcoin:URI (bitcoin:123...?message=example)

0 commit comments

Comments
 (0)