From: Forrest Voight Date: Fri, 18 Nov 2011 01:59:32 +0000 (-0500) Subject: added donation argument and use of new_generate_tx X-Git-Tag: 0.8.2~153^2~33 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=6f1fbf77aa6e14dd65f423b5bfda046fdc989777;p=p2pool.git added donation argument and use of new_generate_tx --- diff --git a/p2pool/main.py b/p2pool/main.py index 1bb2eb9..65182f6 100644 --- a/p2pool/main.py +++ b/p2pool/main.py @@ -440,21 +440,6 @@ def main(args): frac = stale_shares/shares return 2*struct.pack(' timestamp: print 'Toff', timestamp2 - timestamp timestamp = timestamp2 + + if timestamp > 42: + generate_tx = p2pool.new_generate_transaction( + tracker=tracker, + new_share_data=dict( + previous_share_hash=state['best_share_hash'], + pre_coinbase="", + post_coinbase=aux_str, + nonce=run_identifier + struct.pack('= b: + return a2 + else: + return a2 + 1 + if __name__ == '__main__': import random a = 1