1
0

add mechanism to block htlcs from settling back

This commit is contained in:
f321x
2025-02-28 10:42:00 +01:00
parent 4917f7e3ce
commit 109ad2b3da
3 changed files with 16 additions and 3 deletions

View File

@@ -197,6 +197,7 @@ class MockLNWallet(Logger, EventListener, NetworkRetryManager[LNPeerAddr]):
self.preimages = {}
self.stopping_soon = False
self.downstream_to_upstream_htlc = {}
self.dont_settle_htlcs = {}
self.hold_invoice_callbacks = {}
self.payment_bundles = [] # lists of hashes. todo:persist
self.config.INITIAL_TRAMPOLINE_FEE_LEVEL = 0