electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 59547d05138b0e90413ac4f60f81d5af8564516b
parent 762ebb12b253dd53517dbd99b13efcc0e0168b05
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  5 Mar 2021 17:04:06 +0100

test_lnpeer: variables must be declared in MockLNWallet.__init__

Diffstat:
Melectrum/tests/test_lnpeer.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/tests/test_lnpeer.py b/electrum/tests/test_lnpeer.py @@ -139,6 +139,8 @@ class MockLNWallet(Logger, NetworkRetryManager[LNPeerAddr]): self.sent_htlcs_routes = dict() self.sent_buckets = defaultdict(set) self.trampoline_forwarding_failures = {} + self.inflight_payments = set() + self.preimages = {} def get_invoice_status(self, key): pass @@ -171,8 +173,6 @@ class MockLNWallet(Logger, NetworkRetryManager[LNPeerAddr]): def save_channel(self, chan): print("Ignoring channel save") - inflight_payments = set() - preimages = {} get_payments = LNWallet.get_payments get_payment_info = LNWallet.get_payment_info save_payment_info = LNWallet.save_payment_info