Move debug output to end of function.

This commit is contained in:
Neil Booth 2015-11-29 18:10:17 +09:00
parent 9a6dcf7b1e
commit e302dbc71c
1 changed files with 3 additions and 3 deletions

View File

@ -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):