1
0

Prepare to calculate tx fee given a tx size

This commit is contained in:
Neil Booth
2015-11-29 12:41:54 +09:00
parent 39af17bc23
commit a4dd5acc48
3 changed files with 20 additions and 10 deletions

View File

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