1
0

LNWorker: give up payment after timeout, not number of attempts.

Limiting attempts may interrupt a MPP before we receive a MPP_timeout
The attempts parameter is still used in unit tests.
This commit is contained in:
ThomasV
2022-04-29 12:11:50 +02:00
parent 1182972be1
commit f4e902e907
5 changed files with 11 additions and 11 deletions

View File

@@ -117,6 +117,7 @@ class MockWallet:
class MockLNWallet(Logger, NetworkRetryManager[LNPeerAddr]):
MPP_EXPIRY = 2 # HTLC timestamps are cast to int, so this cannot be 1
PAYMENT_TIMEOUT = 120
TIMEOUT_SHUTDOWN_FAIL_PENDING_HTLCS = 0
INITIAL_TRAMPOLINE_FEE_LEVEL = 0