git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4f878ea
)
made share with invalid PoW ban peer
author
Forrest Voight
<forrest@forre.st>
Fri, 16 Mar 2012 18:48:07 +0000 (14:48 -0400)
committer
Forrest Voight
<forrest@forre.st>
Fri, 16 Mar 2012 18:48:07 +0000 (14:48 -0400)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
875d631
..
885b406
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-229,9
+229,7
@@
class Share(object):
self.header_hash = bitcoin_data.hash256(bitcoin_data.block_header_type.pack(self.header))
if self.pow_hash > self.target:
- print 'hash %x' % self.pow_hash
- print 'targ %x' % self.target
- raise ValueError('not enough work!')
+ raise p2p.PeerMisbehavingError('share PoW invalid')
if other_txs is not None and not self.pow_hash <= self.header['bits'].target:
raise ValueError('other_txs provided when not a block solution')