1
0

move estimate_fee back to wallet

This commit is contained in:
ThomasV
2016-02-02 12:26:28 +01:00
parent 0b54ed0243
commit eb36884c66
4 changed files with 8 additions and 25 deletions

View File

@@ -404,8 +404,7 @@ class Commands:
self.wallet.add_input_info(i)
output = (TYPE_ADDRESS, address, amount)
dummy_tx = Transaction.from_io(inputs, [output])
fee_per_kb = self.wallet.fee_per_kb(self.config)
fee = dummy_tx.estimated_fee(fee_per_kb)
fee = self.wallet.estimate_fee(self.config, dummy_tx.estimated_size())
amount -= fee
else:
amount = int(COIN*Decimal(amount))