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

fix: use snapshot in light-client protocol #3959

Merged

Conversation

quake
Copy link
Member

@quake quake commented Apr 25, 2023

What problem does this PR solve?

light-client protocol should not use the ActiveChain to find ancestor headers, because of ActiveChain finding headers from the sync HeaderMap which contains unverified block body.

What is changed and how it works?

Use snapshot to find ancestor headers.

Check List

Tests

  • Unit test
  • Integration test

Release note

Title Only: Include only the PR title in the release note.

@quake quake requested a review from a team as a code owner April 25, 2023 08:12
@quake quake requested review from zhangsoledad and yangby-cryptape and removed request for a team April 25, 2023 08:12
@zhangsoledad zhangsoledad added this pull request to the merge queue Apr 25, 2023
Merged via the queue into nervosnetwork:develop with commit 86f21bc Apr 25, 2023
@doitian doitian mentioned this pull request May 1, 2023
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

4 participants