From 1483b92dcf8ac9b6ecca2e8cfea776f92aa261e2 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 10 Jul 2014 22:20:10 -0500 Subject: [PATCH] Remove outdated comment. --- blockmanager.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/blockmanager.go b/blockmanager.go index d6a92d61..8408e87a 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -473,9 +473,6 @@ func (b *blockManager) logBlockHeight(block *btcutil.Block) { // handleTxMsg handles transaction messages from all peers. func (b *blockManager) handleTxMsg(tmsg *txMsg) { - // Keep track of which peer the tx was sent from. - txHash := tmsg.tx.Sha() - // NOTE: BitcoinJ, and possibly other wallets, don't follow the spec of // sending an inventory message and allowing the remote peer to decide // whether or not they want to request the transaction via a getdata @@ -493,6 +490,7 @@ func (b *blockManager) handleTxMsg(tmsg *txMsg) { // already knows about it and as such we shouldn't have any more // instances of trying to fetch it, or we failed to insert and thus // we'll retry next time we get an inv. + txHash := tmsg.tx.Sha() delete(tmsg.peer.requestedTxns, *txHash) delete(b.requestedTxns, *txHash)