oops
authorforrest <forrest@470744a7-cac9-478e-843e-5ec1b25c69e8>
Mon, 18 Jul 2011 11:40:45 +0000 (11:40 +0000)
committerforrest <forrest@470744a7-cac9-478e-843e-5ec1b25c69e8>
Mon, 18 Jul 2011 11:40:45 +0000 (11:40 +0000)
git-svn-id: svn://forre.st/p2pool@1409 470744a7-cac9-478e-843e-5ec1b25c69e8

p2pool/data.py

index 4b7b05c..6ef5956 100644 (file)
@@ -281,7 +281,7 @@ def generate_transaction(tracker, previous_share_hash, new_script, subsidy, nonc
     #assert dest_weights == dest_weights2
     
     amounts = dict((script, subsidy*(198*weight)//(200*total_weight)) for (script, weight) in dest_weights.iteritems())
-    amounts[net_script] = amounts.get(new_script, 0) + subsidy*1//200
+    amounts[new_script] = amounts.get(new_script, 0) + subsidy*1//200
     amounts[net.SCRIPT] = amounts.get(net.SCRIPT, 0) + subsidy*1//200
     amounts[net.SCRIPT] = amounts.get(net.SCRIPT, 0) + subsidy - sum(amounts.itervalues()) # collect any extra
     if sum(amounts.itervalues()) != subsidy: