diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-09-05 12:23:08 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-09-06 12:12:18 +0200 |
commit | ed4c7fd4fdc1f5b89162d9e91ad57d16205b06eb (patch) | |
tree | e0f8cb449ced2bbe722305360e7d7f4955a6216c /src/qt/transactionrecord.cpp | |
parent | d22d9753cc7175a7cf0ce440b96d83277747ecb9 (diff) |
qt: add vout index to transaction id in transactions details dialog
Diffstat (limited to 'src/qt/transactionrecord.cpp')
-rw-r--r-- | src/qt/transactionrecord.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index e954508769..ea2c1f0a5c 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -224,8 +224,13 @@ bool TransactionRecord::statusUpdateNeeded() return status.cur_num_blocks != nBestHeight; } -std::string TransactionRecord::getTxID() +QString TransactionRecord::getTxID() const { - return hash.ToString() + strprintf("-%03d", idx); + return formatSubTxId(hash, idx); +} + +QString TransactionRecord::formatSubTxId(const uint256 &hash, int vout) +{ + return QString::fromStdString(hash.ToString() + strprintf("-%03d", vout)); } |