From 5b1d54d014f8a2c37f5a09906016a4dd8325d3f0 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 1 Apr 2021 14:25:39 +0200 Subject: [PATCH] fix #7165 --- electrum/lnworker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index 5a460f728..06c512255 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -1962,6 +1962,7 @@ class LNWallet(LNWorker): return Decimal(can_receive) / 1000 def num_sats_can_receive_no_mpp(self) -> Decimal: + can_receive = 0 with self.lock: if self.channels: can_receive = max([