git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7684866
)
fixed missing import in p2pool.data
author
Forrest Voight
<forrest@forre.st>
Wed, 2 May 2012 02:01:16 +0000 (22:01 -0400)
committer
Forrest Voight
<forrest@forre.st>
Wed, 2 May 2012 02:51:00 +0000 (22:51 -0400)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
cdf2076
..
8db14c6
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-218,6
+218,7
@@
class Share(object):
self.hash = self.header_hash = bitcoin_data.hash256(bitcoin_data.block_header_type.pack(self.header))
if self.pow_hash > self.target:
+ from p2pool import p2p
raise p2p.PeerMisbehavingError('share PoW invalid')
if other_txs is not None and not self.pow_hash <= self.header['bits'].target: