Permalink
Browse files

Block Browser right click txid in tx page will also set block info

  • Loading branch information...
Tranz5 committed Sep 4, 2014
1 parent f4f3986 commit 463be5a1cac994ba99cf059031be3318d8e50d5b
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/qt/blockbrowser.cpp
View
@@ -415,6 +415,20 @@ void BlockBrowser::setTransactionId(const QString &transactionId)
ui->txBox->setText(transactionId);
ui->txBox->setFocus();
updateExplorer(false);
uint256 hash;
hash.SetHex(transactionId.toStdString());
CTransaction tx;
uint256 hashBlock = 0;
if (GetTransaction(hash, tx, hashBlock))
{
CBlockIndex* pblockindex = mapBlockIndex[hashBlock];
pblockindex->nHeight;
ui->heightBox->setValue(pblockindex->nHeight);
updateExplorer(true);
}
}
void BlockBrowser::txClicked()

0 comments on commit 463be5a

Please sign in to comment.