|
@ -14,7 +14,7 @@ from electrum.wallet import Wallet, InternalAddressCorruption |
|
|
from electrum.paymentrequest import InvoiceStore |
|
|
from electrum.paymentrequest import InvoiceStore |
|
|
from electrum.util import profiler, InvalidPassword, send_exception_to_crash_reporter |
|
|
from electrum.util import profiler, InvalidPassword, send_exception_to_crash_reporter |
|
|
from electrum.plugin import run_hook |
|
|
from electrum.plugin import run_hook |
|
|
from electrum.util import format_satoshis, format_satoshis_plain |
|
|
from electrum.util import format_satoshis, format_satoshis_plain, format_fee_satoshis |
|
|
from electrum.paymentrequest import PR_UNPAID, PR_PAID, PR_UNKNOWN, PR_EXPIRED |
|
|
from electrum.paymentrequest import PR_UNPAID, PR_PAID, PR_UNKNOWN, PR_EXPIRED |
|
|
from electrum import blockchain |
|
|
from electrum import blockchain |
|
|
from electrum.network import Network, TxBroadcastError, BestEffortRequestFailed |
|
|
from electrum.network import Network, TxBroadcastError, BestEffortRequestFailed |
|
@ -808,6 +808,10 @@ class ElectrumWindow(App): |
|
|
def format_amount_and_units(self, x): |
|
|
def format_amount_and_units(self, x): |
|
|
return format_satoshis_plain(x, self.decimal_point()) + ' ' + self.base_unit |
|
|
return format_satoshis_plain(x, self.decimal_point()) + ' ' + self.base_unit |
|
|
|
|
|
|
|
|
|
|
|
def format_fee_rate(self, fee_rate): |
|
|
|
|
|
# fee_rate is in sat/kB |
|
|
|
|
|
return format_fee_satoshis(fee_rate/1000) + ' sat/byte' |
|
|
|
|
|
|
|
|
#@profiler |
|
|
#@profiler |
|
|
def update_wallet(self, *dt): |
|
|
def update_wallet(self, *dt): |
|
|
self._trigger_update_status() |
|
|
self._trigger_update_status() |
|
|