git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
431b87a
)
don't load old-style shares
author
Forrest Voight
<forrest.voight@gmail.com>
Tue, 6 Mar 2012 06:00:35 +0000 (
01:00
-0500)
committer
Forrest Voight
<forrest.voight@gmail.com>
Tue, 6 Mar 2012 06:00:35 +0000 (
01:00
-0500)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
3053692
..
380c3b2
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-497,7
+497,10
@@
class ShareStore(object):
yield 'verified_hash', verified_hash
verified_hashes.add(verified_hash)
elif type_id == 5:
- share = Share.from_share(share_type.unpack(data_hex.decode('hex')), self.net, None)
+ raw_share = share_type.unpack(data_hex.decode('hex'))
+ if raw_share['type'] in [0, 1]:
+ continue
+ share = Share.from_share(raw_share, self.net, None)
yield 'share', share
share_hashes.add(share.hash)
else: