Browse Source

fix low_fee value

283
ThomasV 9 years ago
parent
commit
8e0d1f1e44
  1. 6
      lib/wallet.py

6
lib/wallet.py

@ -921,10 +921,10 @@ class Abstract_Wallet(PrintError):
tx = self.transactions.get(tx_hash)
is_final = tx and tx.is_final()
fee = self.tx_fees.get(tx_hash)
if fee and self.network and self.network.dynfee(25):
if fee and self.network and self.network.dynfee(0):
size = len(tx.raw)/2
low_fee = int(self.network.dynfee(25)*size/1000)
is_lowfee = fee < low_fee * 0.5
low_fee = int(self.network.dynfee(0)*size/1000)
is_lowfee = fee < low_fee
else:
is_lowfee = False
if not is_final:

Loading…
Cancel
Save