git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
74a2ee1
)
fixed off-by-one error in sharechain height assertion
author
Forrest Voight
<forrest@forre.st>
Thu, 11 Aug 2011 06:22:22 +0000 (
02:22
-0400)
committer
Forrest Voight
<forrest@forre.st>
Thu, 11 Aug 2011 06:22:22 +0000 (
02:22
-0400)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
8073d2a
..
e210029
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-219,7
+219,7
@@
def get_pool_attempts_per_second(tracker, previous_share_hash, net, dist=None):
def generate_transaction(tracker, previous_share_hash, new_script, subsidy, nonce, block_target, net):
height, last = tracker.get_height_and_last(previous_share_hash)
- assert height >= net.CHAIN_LENGTH + 1 or last is None
+ assert height >= net.CHAIN_LENGTH or last is None
if height < net.TARGET_LOOKBEHIND:
target = bitcoin_data.FloatingIntegerType().truncate_to(2**256//2**20 - 1)
else: