git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8016195
)
fixed negative share count bug
author
Forrest Voight
<forrest.voight@gmail.com>
Sat, 31 Mar 2012 20:01:58 +0000 (16:01 -0400)
committer
Forrest Voight
<forrest.voight@gmail.com>
Sat, 31 Mar 2012 20:02:44 +0000 (16:02 -0400)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
5e45652
..
6baf22a
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-634,7
+634,7
@@
def main(args, net, datadir_path, merged_urls, worker_endpoint):
except:
log.err(None, 'Error while processing merged mining POW:')
- if pow_hash <= share_info['bits'].target:
+ if pow_hash <= share_info['bits'].target and header_hash not in received_header_hashes:
min_header = dict(header);del min_header['merkle_root']
hash_link = p2pool_data.prefix_to_hash_link(packed_generate_tx[:-32-4], p2pool_data.Share.gentx_before_refhash)
if new: