tMove debug output to end of function. - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e302dbc71c0d403661fb1718f6d3df59cde237db DIR parent 9a6dcf7b1e0219bd6d5a5a51d21ec1dc6df999d0 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Sun, 29 Nov 2015 18:10:17 +0900 Move debug output to end of function. Diffstat: M lib/coinchooser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/coinchooser.py b/lib/coinchooser.py t@@ -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) t@@ -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):