Browse Source
kivy: when pressing "max" button, catch NoDynamicFeeEstimates
3.2.x
SomberNight
7 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
6 additions and
2 deletions
-
gui/kivy/main_window.py
|
|
@ -67,7 +67,7 @@ Label.register('Roboto', |
|
|
|
'gui/kivy/data/fonts/Roboto-Bold.ttf') |
|
|
|
|
|
|
|
|
|
|
|
from electrum.util import base_units |
|
|
|
from electrum.util import base_units, NoDynamicFeeEstimates |
|
|
|
|
|
|
|
|
|
|
|
class ElectrumWindow(App): |
|
|
@ -668,7 +668,11 @@ class ElectrumWindow(App): |
|
|
|
return '' |
|
|
|
addr = str(self.send_screen.screen.address) or self.wallet.dummy_address() |
|
|
|
outputs = [(TYPE_ADDRESS, addr, '!')] |
|
|
|
tx = self.wallet.make_unsigned_transaction(inputs, outputs, self.electrum_config) |
|
|
|
try: |
|
|
|
tx = self.wallet.make_unsigned_transaction(inputs, outputs, self.electrum_config) |
|
|
|
except NoDynamicFeeEstimates as e: |
|
|
|
Clock.schedule_once(lambda dt, bound_e=e: self.show_error(str(bound_e))) |
|
|
|
return '' |
|
|
|
amount = tx.output_value() |
|
|
|
return format_satoshis_plain(amount, self.decimal_point()) |
|
|
|
|
|
|
|