X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=blobdiff_plain;f=p2pool%2Fdata.py;h=72afbe4e609ebc0230d41f50127154e4c2048d47;hp=e5a69ce2e36f9a79df8daaa74790d16e99cecacc;hb=ed2c5da2875b0af5f56b11f9de41a2d300fce751;hpb=702aba6996bc880a9af26aeeef19bea29813c141 diff --git a/p2pool/data.py b/p2pool/data.py index e5a69ce..72afbe4 100644 --- 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