Qt GUI: let users type tx output in script language
This commit is contained in:
@@ -8,6 +8,7 @@ from decimal import Decimal
|
||||
import threading
|
||||
|
||||
import electrum
|
||||
from electrum.bitcoin import TYPE_ADDRESS
|
||||
from electrum import WalletStorage, Wallet
|
||||
from electrum_gui.kivy.i18n import _
|
||||
from electrum.contacts import Contacts
|
||||
@@ -563,7 +564,7 @@ class ElectrumWindow(App):
|
||||
def get_max_amount(self):
|
||||
inputs = self.wallet.get_spendable_coins(None)
|
||||
addr = str(self.send_screen.screen.address) or self.wallet.dummy_address()
|
||||
amount, fee = self.wallet.get_max_amount(self.electrum_config, inputs, addr, None)
|
||||
amount, fee = self.wallet.get_max_amount(self.electrum_config, inputs, (TYPE_ADDRESS, addr), None)
|
||||
return format_satoshis_plain(amount, self.decimal_point())
|
||||
|
||||
def format_amount(self, x, is_diff=False, whitespaces=False):
|
||||
|
||||
Reference in New Issue
Block a user