mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 15:39:05 +01:00
[Qt] remove trailing output-index from transaction-id
The trailing output-index leads to cases where the user can't look-up the transaction ID in various systems.
This commit is contained in:
@@ -260,11 +260,10 @@ bool TransactionRecord::statusUpdateNeeded()
|
||||
|
||||
QString TransactionRecord::getTxID() const
|
||||
{
|
||||
return formatSubTxId(hash, idx);
|
||||
return QString::fromStdString(hash.ToString());
|
||||
}
|
||||
|
||||
QString TransactionRecord::formatSubTxId(const uint256 &hash, int vout)
|
||||
int TransactionRecord::getOutputIndex() const
|
||||
{
|
||||
return QString::fromStdString(hash.ToString() + strprintf("-%03d", vout));
|
||||
return idx;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user