git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
11d63ef
)
fix for commit f5239b2: refuse to connect to old nodes for bitcoin network
author
Forrest Voight
<forrest@forre.st>
Fri, 19 Jul 2013 01:32:45 +0000 (21:32 -0400)
committer
Forrest Voight
<forrest@forre.st>
Fri, 19 Jul 2013 01:32:45 +0000 (21:32 -0400)
p2pool/p2p.py
patch
|
blob
|
history
diff --git
a/p2pool/p2p.py
b/p2pool/p2p.py
index
ea51b4a
..
f86ec69
100644
(file)
--- 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 < (13 if self.node.net.NAME == 'bitcoin' else 8):
+ if version < (1300 if self.node.net.NAME == 'bitcoin' else 8):
raise PeerMisbehavingError('peer too old')
self.other_version = version