1
0

lnworker: rename can_send to num_sats_can_send

This commit is contained in:
SomberNight
2020-03-26 07:00:15 +01:00
parent 5c8455d00b
commit 79d202485e
5 changed files with 25 additions and 12 deletions

View File

@@ -105,7 +105,7 @@ class InvoiceDialog(Factory.Popup):
self.status_color = pr_color[self.status]
self.can_pay = self.status in [PR_UNPAID, PR_FAILED]
if self.can_pay and self.is_lightning and self.app.wallet.lnworker:
if self.amount and self.amount > self.app.wallet.lnworker.can_send():
if self.amount and self.amount > self.app.wallet.lnworker.num_sats_can_send():
self.warning = _('Warning') + ': ' + _('This amount exceeds the maximum you can currently send with your channels')
def on_dismiss(self):