git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b32409e
)
fixed faulty assertion in data.load_share
author
Forrest Voight
<forrest@forre.st>
Fri, 25 Jan 2013 20:39:23 +0000 (15:39 -0500)
committer
Forrest Voight
<forrest@forre.st>
Fri, 25 Jan 2013 20:39:23 +0000 (15:39 -0500)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
a786fe5
..
5ab1e7b
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-40,7
+40,7
@@
share_type = pack.ComposedType([
])
def load_share(share, net, peer_addr):
- assert isinstance(peer_addr, tuple)
+ assert peer_addr is None or isinstance(peer_addr, tuple)
if share['type'] in [0, 1, 2, 3, 4, 5, 6, 7, 8]:
from p2pool import p2p
raise p2p.PeerMisbehavingError('sent an obsolete share')