mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
fix estimate_fee
This commit is contained in:
parent
714445aba8
commit
34e3261efd
1 changed files with 2 additions and 1 deletions
|
@ -389,7 +389,8 @@ class Commands:
|
|||
self.wallet.add_input_info(i)
|
||||
output = ('address', address, amount)
|
||||
dummy_tx = Transaction.from_io(inputs, [output])
|
||||
fee = self.wallet.estimated_fee(dummy_tx)
|
||||
fee_per_kb = self.wallet.fee_per_kb(self.config)
|
||||
fee = self.wallet.estimated_fee(dummy_tx, fee_per_kb)
|
||||
amount -= fee
|
||||
else:
|
||||
amount = int(COIN*Decimal(amount))
|
||||
|
|
Loading…
Add table
Reference in a new issue