Browse Source

test_lnpeer: variables must be declared in MockLNWallet.__init__

patch-4
ThomasV 4 years ago
parent
commit
59547d0513
  1. 4
      electrum/tests/test_lnpeer.py

4
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

Loading…
Cancel
Save