fixed bug when bootstrapping sharechain with --give-author 0 0.10.4
authorForrest Voight <forrest@forre.st>
Wed, 25 Apr 2012 16:31:18 +0000 (12:31 -0400)
committerForrest Voight <forrest@forre.st>
Wed, 25 Apr 2012 16:31:18 +0000 (12:31 -0400)
p2pool/data.py

index 9ee2595..12bf3fa 100644 (file)
@@ -162,7 +162,7 @@ class Share(object):
                 sequence=None,
                 script=share_data['coinbase'].ljust(2, '\x00'),
             )],
-            tx_outs=[dict(value=amounts[script], script=script) for script in dests if amounts[script]] + [dict(
+            tx_outs=[dict(value=amounts[script], script=script) for script in dests if amounts[script] or script == DONATION_SCRIPT] + [dict(
                 value=0,
                 script='\x20' + cls.get_ref_hash(net, share_info, ref_merkle_link),
             )],