Skip to content

peer view miss event#2445

Merged
turuslan merged 1 commit intomasterfrom
fix/peer-view-miss
Apr 24, 2025
Merged

peer view miss event#2445
turuslan merged 1 commit intomasterfrom
fix/peer-view-miss

Conversation

@turuslan
Copy link
Copy Markdown
Contributor

Referenced issues

Description of the Change

  • caused "Found best chain is longer than approved" error, because parachains didn't get kViewUpdated event.
  • kNewHeads is called once for each block, so event is never duplicate
  • data race, 2 blocks became head before first event, so heads didn't change between first and second event, so second event was ignored

Possible Drawbacks

- kNewHeads is called once for each block, so event is never duplicate
- data race, 2 blocks became head before first event, so heads didn't change between first and second event, so second event was ignored

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan requested review from iceseer and kamilsa April 24, 2025 08:59
@turuslan turuslan merged commit 76e011d into master Apr 24, 2025
21 of 27 checks passed
@turuslan turuslan deleted the fix/peer-view-miss branch April 24, 2025 10:06
Lederstrumpf pushed a commit to Lederstrumpf/kagome that referenced this pull request May 20, 2025
- kNewHeads is called once for each block, so event is never duplicate
- data race, 2 blocks became head before first event, so heads didn't change between first and second event, so second event was ignored

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
kamilsa pushed a commit that referenced this pull request Jun 10, 2025
- kNewHeads is called once for each block, so event is never duplicate
- data race, 2 blocks became head before first event, so heads didn't change between first and second event, so second event was ignored

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
(cherry picked from commit 76e011d)
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