commit e302dbc71c0d403661fb1718f6d3df59cde237db
parent 9a6dcf7b1e0219bd6d5a5a51d21ec1dc6df999d0
Author: Neil Booth <kyuupichan@gmail.com>
Date: Sun, 29 Nov 2015 18:10:17 +0900
Move debug output to end of function.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/coinchooser.py b/lib/coinchooser.py
@@ -57,9 +57,6 @@ class CoinChooserBase(PrintError):
buckets = self.bucketize_coins(coins)
buckets = self.choose_buckets(buckets, output_total, fee)
- self.print_error("using %d inputs" % len(tx.inputs))
- self.print_error("using buckets:", [bucket.desc for bucket in buckets])
-
tx.inputs = [coin for b in buckets for coin in b.coins]
input_total = sum(bucket.value for bucket in buckets)
tx_size = base_size + sum(bucket.size for bucket in buckets)
@@ -76,6 +73,9 @@ class CoinChooserBase(PrintError):
elif change_amount:
self.print_error('not keeping dust', change_amount)
+ self.print_error("using %d inputs" % len(tx.inputs))
+ self.print_error("using buckets:", [bucket.desc for bucket in buckets])
+
return tx
class CoinChooser(CoinChooserBase):