Skip to content

fix: common checkpoint selection - #1517

Merged
KolbyML merged 2 commits into
ReamLabs:masterfrom
Dsorken:checkpoint-selection-improvement
Jul 16, 2026
Merged

fix: common checkpoint selection#1517
KolbyML merged 2 commits into
ReamLabs:masterfrom
Dsorken:checkpoint-selection-improvement

Conversation

@Dsorken

@Dsorken Dsorken commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

What was wrong?

In cases where more than two peers do not have identical checkpoints and there is then no common checkpoint to select Ream will stall waiting for a resolution that is not guaranteed to happen. Meaning there is a chance that ream has a chance to get stuck in a still functioning network.

How was it fixed?

The fix is to add a selection system to break ties in this case. One common way to do so is cluster selection where Ream will look at all checkpoints available and select the highest checkpoint that is not an outlier, where an outlier would typically only pop up in the event a peer re-orgs and continues on the re-org path without the majority of peers being in agreement. This way Ream still chooses the fastest peer without choosing an incorrect peer.

To-Do

@KolbyML KolbyML left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit: looks good

@KolbyML
KolbyML merged commit 0f4f834 into ReamLabs:master Jul 16, 2026
26 of 39 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.

2 participants