Prepare to calculate tx fee given a tx size
This commit is contained in:
@@ -32,8 +32,7 @@ class CoinChooser(PrintError):
|
||||
added to the transaction fee.'''
|
||||
amount = sum(map(lambda x: x[2], outputs))
|
||||
total = 0
|
||||
inputs = []
|
||||
tx = Transaction.from_io(inputs, outputs)
|
||||
tx = Transaction.from_io([], outputs)
|
||||
fee = fee_estimator(tx)
|
||||
# add inputs, sorted by age
|
||||
for item in coins:
|
||||
|
||||
Reference in New Issue
Block a user