Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed faulty assertion in data.load_share

  • Loading branch information...
commit 0e325a45dc1c1d40eabcf066c3b52a381ece569a 1 parent b32409e
@forrestv authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  p2pool/data.py
View
2  p2pool/data.py
@@ -40,7 +40,7 @@ def check_hash_link(hash_link, data, const_ending=''):
])
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')
Please sign in to comment.
Something went wrong with that request. Please try again.