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

Ensure UPDATE errors have an update #1879

Closed
TheBlueMatt opened this issue Nov 28, 2022 · 1 comment · Fixed by #1895
Closed

Ensure UPDATE errors have an update #1879

TheBlueMatt opened this issue Nov 28, 2022 · 1 comment · Fixed by #1895
Assignees
Milestone

Comments

@TheBlueMatt
Copy link
Collaborator

cc #1835 (comment)

@TheBlueMatt
Copy link
Collaborator Author

WIth the constructors in #1880 we can assert this too.

@TheBlueMatt TheBlueMatt self-assigned this Dec 1, 2022
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Dec 1, 2022
When we're constructing an HTLCFailReason, we should check that we
set the data to at least the correct length for the given failure
code, which we do here.

Fixes lightningdevkit#1879
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Dec 1, 2022
When we're constructing an HTLCFailReason, we should check that we
set the data to at least the correct length for the given failure
code, which we do here.

Fixes lightningdevkit#1879
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Dec 1, 2022
When we receive a phantom HTLC with a bogus/modified CLTV, we
should fail back with `incorrect_cltv_expiry`, but that requires a
`channel_update`, which we cannot generate for a phantom HTLC which
has no corresponding channel. Thus, instead, we have to fall back
to `incorrect_cltv_expiry`.

Fixes lightningdevkit#1879
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Dec 2, 2022
When we receive a phantom HTLC with a bogus/modified CLTV, we
should fail back with `incorrect_cltv_expiry`, but that requires a
`channel_update`, which we cannot generate for a phantom HTLC which
has no corresponding channel. Thus, instead, we have to fall back
to `incorrect_cltv_expiry`.

Fixes lightningdevkit#1879
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Dec 2, 2022
When we receive a phantom HTLC with a bogus/modified CLTV, we
should fail back with `incorrect_cltv_expiry`, but that requires a
`channel_update`, which we cannot generate for a phantom HTLC which
has no corresponding channel. Thus, instead, we have to fall back
to `incorrect_cltv_expiry`.

Fixes lightningdevkit#1879
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Dec 5, 2022
When we receive a phantom HTLC with a bogus/modified CLTV, we
should fail back with `incorrect_cltv_expiry`, but that requires a
`channel_update`, which we cannot generate for a phantom HTLC which
has no corresponding channel. Thus, instead, we have to fall back
to `incorrect_cltv_expiry`.

Fixes lightningdevkit#1879
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Dec 6, 2022
When we receive a phantom HTLC with a bogus/modified CLTV, we
should fail back with `incorrect_cltv_expiry`, but that requires a
`channel_update`, which we cannot generate for a phantom HTLC which
has no corresponding channel. Thus, instead, we have to fall back
to `incorrect_cltv_expiry`.

Fixes lightningdevkit#1879
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Dec 6, 2022
When we receive a phantom HTLC with a bogus/modified CLTV, we
should fail back with `incorrect_cltv_expiry`, but that requires a
`channel_update`, which we cannot generate for a phantom HTLC which
has no corresponding channel. Thus, instead, we have to fall back
to `incorrect_cltv_expiry`.

Fixes lightningdevkit#1879
optout21 pushed a commit to optout21/rust-lightning that referenced this issue Jul 24, 2023
When we receive a phantom HTLC with a bogus/modified CLTV, we
should fail back with `incorrect_cltv_expiry`, but that requires a
`channel_update`, which we cannot generate for a phantom HTLC which
has no corresponding channel. Thus, instead, we have to fall back
to `incorrect_cltv_expiry`.

Fixes lightningdevkit#1879
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 a pull request may close this issue.

1 participant