X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=p2pool%2Fp2p.py;h=99a9e87ba7ee81ba1ff641b3650afaefadc7676a;hb=bf3056c76330dcc776ad09650c567619e94dea3b;hp=4c0d7a02103dc70e08e4f9ed0916daf6b2152bfa;hpb=82b587c0bc063c75416317106b70fc57f5d16981;p=p2pool.git diff --git a/p2pool/p2p.py b/p2pool/p2p.py index 4c0d7a0..99a9e87 100644 --- a/p2pool/p2p.py +++ b/p2pool/p2p.py @@ -45,7 +45,7 @@ class Protocol(p2protocol.Protocol): self.addr = self.transport.getPeer().host, self.transport.getPeer().port self.send_version( - version=8, + version=1100, services=0, addr_to=dict( services=0, @@ -356,10 +356,10 @@ class Protocol(p2protocol.Protocol): 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 @@ -375,7 +375,7 @@ class Protocol(p2protocol.Protocol): 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