Skip to content

Commit

Permalink
Added print tx hash to output
Browse files Browse the repository at this point in the history
  • Loading branch information
Rav3nPL authored and forrestv committed Nov 30, 2012
1 parent 7bf9752 commit 727db88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions p2pool/p2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ def handle_remember_tx(self, tx_hashes, txs):
for cache in self.known_txs_cache.itervalues():
if tx_hash in cache:
tx = cache[tx_hash]
print 'Transaction rescued from peer latency cache!'
print 'Transaction %064x rescued from peer latency cache!' % (tx_hash,)
break
else:
print >>sys.stderr, 'Peer referenced unknown transaction, disconnecting'
print >>sys.stderr, 'Peer referenced unknown transaction %064x, disconnecting' % (tx_hash,)
self.transport.loseConnection()
return

Expand All @@ -375,7 +375,7 @@ def handle_remember_tx(self, tx_hashes, txs):
return

if tx_hash in self.node.known_txs_var.value and not warned:
print 'Peer sent entire transaction that was already received'
print 'Peer sent entire transaction %064x that was already received' % (tx_hash,)
warned = True

self.remembered_txs[tx_hash] = tx
Expand Down

0 comments on commit 727db88

Please sign in to comment.