Write what is generated and make it clear it's for the worker
authorgyver <lionel-dev@bouton.name>
Fri, 12 Aug 2011 18:36:30 +0000 (20:36 +0200)
committergyver <lionel-dev@bouton.name>
Fri, 12 Aug 2011 18:36:30 +0000 (20:36 +0200)
p2pool/main.py

index 79b0c9c..552e613 100644 (file)
@@ -368,7 +368,7 @@ def main(args):
                 block_target=state['target'],
                 net=args.net,
             )
-            print 'Generating! Difficulty: %.06f Payout if block: %.6f BTC' % (0xffff*2**208/p2pool.coinbase_type.unpack(generate_tx['tx_ins'][0]['script'])['share_data']['target'], generate_tx['tx_outs'][-1]['value']*1e-8)
+            print 'New base for worker. Difficulty: %.06f Payout if block: %.6f BTC' % (0xffff*2**208/p2pool.coinbase_type.unpack(generate_tx['tx_ins'][0]['script'])['share_data']['target'], generate_tx['tx_outs'][-1]['value']*1e-8)
             #print 'Target: %x' % (p2pool.coinbase_type.unpack(generate_tx['tx_ins'][0]['script'])['share_data']['target'],)
             #, have', shares.count(my_script) - 2, 'share(s) in the current chain. Fee:', sum(tx.value_in - tx.value_out for tx in extra_txs)/100000000
             transactions = [generate_tx] + [tx.tx for tx in extra_txs]