qt send tab: subtract 2fa fee when clicking "spend max"
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user