mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
fee estimate: kilobyte
This commit is contained in:
parent
c42038a891
commit
8d396997dc
1 changed files with 1 additions and 1 deletions
|
@ -698,7 +698,7 @@ class Abstract_Wallet(object):
|
||||||
|
|
||||||
def estimated_fee(self, tx):
|
def estimated_fee(self, tx):
|
||||||
estimated_size = len(tx.serialize(-1))/2
|
estimated_size = len(tx.serialize(-1))/2
|
||||||
fee = int(self.fee_per_kb*estimated_size/1024.)
|
fee = int(self.fee_per_kb*estimated_size/1000.)
|
||||||
if fee < MIN_RELAY_TX_FEE: # and tx.requires_fee(self.verifier):
|
if fee < MIN_RELAY_TX_FEE: # and tx.requires_fee(self.verifier):
|
||||||
fee = MIN_RELAY_TX_FEE
|
fee = MIN_RELAY_TX_FEE
|
||||||
return fee
|
return fee
|
||||||
|
|
Loading…
Add table
Reference in a new issue