git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
702aba6
)
Don't include transaction if it still too young
author
MASM fan
<masmfan@gmail.com>
Sat, 8 Feb 2014 06:57:44 +0000 (10:57 +0400)
committer
MASM fan
<masmfan@gmail.com>
Sat, 8 Feb 2014 06:57:44 +0000 (10:57 +0400)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
e5a69ce
..
72afbe4
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-139,6
+139,8
@@
class Share(object):
this = tx_hash_to_this[tx_hash]
else:
if known_txs is not None:
+ if known_txs[tx_hash]['timestamp'] > desired_timestamp - 30:
+ continue
this_size = bitcoin_data.tx_type.packed_size(known_txs[tx_hash])
if new_transaction_size + this_size > 50000: # only allow 50 kB of new txns/share
break