qt: add vout index to transaction id in transactions details dialog
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user