X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=p2pool%2Fp2p.py;h=bc61982eca3c0548e4f19aa7f18d6fef705230c9;hb=9541a77695bc98cccff001541ccb3880bca6d875;hp=d116e40b0ed6b4ea6ae9be9dd2f441a0335cc6d7;hpb=54253f1b7529d69eb4f950e515627ef43ab95290;p=p2pool.git diff --git a/p2pool/p2p.py b/p2pool/p2p.py index d116e40..bc61982 100644 --- a/p2pool/p2p.py +++ b/p2pool/p2p.py @@ -116,7 +116,7 @@ class Protocol(p2protocol.Protocol): def handle_version(self, version, services, addr_to, addr_from, nonce, sub_version, mode, best_share_hash): if self.other_version is not None: raise PeerMisbehavingError('more than one version message') - if version < 8: + if version < 1300: raise PeerMisbehavingError('peer too old') self.other_version = version @@ -285,7 +285,7 @@ class Protocol(p2protocol.Protocol): if share.VERSION >= 13: # send full transaction for every new_transaction_hash that peer does not know for tx_hash in share.share_info['new_transaction_hashes']: - assert tx_hash in known_txs, 'tried to broadcast transaction without knowing all its new transactions' + assert tx_hash in known_txs, 'tried to broadcast share without knowing all its new transactions' if tx_hash not in self.remote_tx_hashes: tx_hashes.add(tx_hash) continue