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

Validate channel_announcement sigs early #1406

Merged
merged 2 commits into from
May 5, 2020
Merged

Validate channel_announcement sigs early #1406

merged 2 commits into from
May 5, 2020

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented May 5, 2020

I'd like to get these two simple fixes in the 0.4.0 release as well.

The first commit validates channel announcement signatures in the channel, before it reaches the router; it makes the flow a bit simpler. See the commit message for details.

The second commit is just a variable rename. The fact that it was called ok was quite misleading to readers.

t-bast added 2 commits May 4, 2020 16:36
We should validate the announcement signatures in the channel too.
We still validate them in the router, but it's a different layer and the
check should happen as soon as possible.
We don't want to keep the channel open if the peer is sending us garbage.
It was called `ok` but was actually checking that it's *not* ok.
@t-bast t-bast requested a review from pm47 May 5, 2020 07:12
@t-bast t-bast merged commit c4d085a into master May 5, 2020
@t-bast t-bast deleted the channel-ann-sigs branch May 5, 2020 08:51
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.

None yet

2 participants