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

Report drifting close time on local node #4101

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

marta-lokhova
Copy link
Contributor

@marta-lokhova marta-lokhova commented Dec 19, 2023

Resolves #1815

@marta-lokhova marta-lokhova force-pushed the clock_drift_reporting branch 2 times, most recently from ea69e1a to 94b1721 Compare December 21, 2023 01:18
SirTyson
SirTyson previously approved these changes Jan 3, 2024
Copy link
Contributor

@SirTyson SirTyson left a comment

Choose a reason for hiding this comment

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

LGTM, just a few questions.

src/herder/HerderImpl.cpp Outdated Show resolved Hide resolved
src/herder/HerderImpl.cpp Outdated Show resolved Hide resolved
@marta-lokhova
Copy link
Contributor Author

@SirTyson PTAL. I re-worked the approach a little bit: now validators compare their own close time used for nomination with close time externalized by the network. If the drift is over a certain threshold, we fire a warning. This approach is based on the assumption that most validators on the network have healthy clocks. It also catches both drifting behind and drifting ahead, so no more special-casing is needed.

@marta-lokhova marta-lokhova self-assigned this Jul 31, 2024
SirTyson
SirTyson previously approved these changes Jul 31, 2024
Copy link
Contributor

@SirTyson SirTyson left a comment

Choose a reason for hiding this comment

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

LGTM, just a few nit pics.

src/herder/HerderImpl.cpp Show resolved Hide resolved
src/herder/HerderImpl.cpp Show resolved Hide resolved
src/herder/HerderImpl.cpp Outdated Show resolved Hide resolved
@marta-lokhova marta-lokhova force-pushed the clock_drift_reporting branch from 3b2b2d9 to c712fe8 Compare August 1, 2024 15:56
@SirTyson SirTyson added this pull request to the merge queue Aug 1, 2024
Merged via the queue into stellar:master with commit 1ad3360 Aug 1, 2024
14 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.

Rethink how we check whether node's time is synchronized
2 participants