Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightningd: log BROKEN if we lost funds, only unusual if we closed abandoned HTLC #7364

Merged

Conversation

rustyrussell
Copy link
Contributor

@rustyrussell rustyrussell commented Jun 4, 2024

Started seeing these in my test logs, and it's the wrong way around!

Also, fixes flake in test_penalty_htlc_tx_timeout[True]

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a3b59fe

…andoned HTLC.

Started seeing these in my logs, and it's the wrong way around!

Signed-off-by: Rusty Russell <[email protected]>
…incoming already onchain.

From test_penalty_htlc_tx_timeout[False] flake (with keys replaced by l2 and l5, for clarity)

```
lightningd-3 2024-06-04T04:34:00.942Z UNUSUAL l2-chan#1: Peer permanent failure in CHANNELD_NORMAL: Funding transaction spent
lightningd-3 2024-06-04T04:34:01.570Z UNUSUAL l5-chan#3: Peer permanent failure in CHANNELD_NORMAL: Funding transaction spent
lightningd-3 2024-06-04T04:34:01.655Z UNUSUAL l5-chan#3: Abandoning unresolved onchain HTLC at block 132 (expired at 125) to avoid peer closing incoming HTLC at block 131
lightningd-3 2024-06-04T04:34:02.802Z **BROKEN** l5-chan#3: FUNDS LOSS of 50000000msat: peer took funds onchain before we could time out the HTLC, but we abandoned incoming HTLC to save the incoming channel
```

So, we were already closing l2, no reason to abandon it.

Signed-off-by: Rusty Russell <[email protected]>
@ShahanaFarooqui
Copy link
Collaborator

ACK 5a2453a

@vincenzopalazzo vincenzopalazzo enabled auto-merge (rebase) June 19, 2024 20:09
@vincenzopalazzo vincenzopalazzo merged commit 1a1696f into ElementsProject:master Jun 19, 2024
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants