From e302dbc71c0d403661fb1718f6d3df59cde237db Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 29 Nov 2015 18:10:17 +0900 Subject: [PATCH] Move debug output to end of function. --- lib/coinchooser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/coinchooser.py b/lib/coinchooser.py index 6fcfd6276..d42268248 100644 --- 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):