Browse Source

qt send tab: subtract 2fa fee when clicking "spend max"

master
SomberNight 6 years ago
parent
commit
97056ae44d
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 10
      electrum/gui/qt/main_window.py

10
electrum/gui/qt/main_window.py

@ -1292,12 +1292,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
is_sweep=False) is_sweep=False)
tx = make_tx(None) tx = make_tx(None)
amount = tx.output_value()#sum(x.value_sats() for x in self.get_coins()) amount = tx.output_value()
self.amount_e.setAmount(amount) __, x_fee_amount = run_hook('get_tx_extra_fee', self.wallet, tx) or (None, 0)
## substract extra fee amount_after_all_fees = amount - x_fee_amount
#__, x_fee_amount = run_hook('get_tx_extra_fee', self.wallet, tx) or (None, 0) self.amount_e.setAmount(amount_after_all_fees)
#amount_after_all_fees = amount - x_fee_amount
#self.amount_e.setAmount(amount_after_all_fees)
def get_contact_payto(self, key): def get_contact_payto(self, key):
_type, label = self.contacts.get(key) _type, label = self.contacts.get(key)

Loading…
Cancel
Save