Skip to content

Comments

Fixing our large timing discrepancy issue#1412

Merged
AnomalRoil merged 3 commits intomasterfrom
fix/timediscrepancy
Apr 25, 2025
Merged

Fixing our large timing discrepancy issue#1412
AnomalRoil merged 3 commits intomasterfrom
fix/timediscrepancy

Conversation

@AnomalRoil
Copy link
Member

I've discovered the culprit for our relatively large timing discrepancy in beacon production!

We were starting our ticker after waiting a given number of seconds without distinguishing whether the current second was already ticking or not. This PR adds extra tracing information and fixes the issue by relying on clock.Until, which is precise down to the nanosecond unlike how previous "second" resolution.

This PR brings a 97% decrease in beacon aggregation latency when doing local tests.

@AnomalRoil
Copy link
Member Author

Fixes #1093

@AnomalRoil AnomalRoil linked an issue Apr 25, 2025 that may be closed by this pull request
CluEleSsUK
CluEleSsUK previously approved these changes Apr 25, 2025
@CluEleSsUK
Copy link
Contributor

think it needs some linter love but then good to go

@AnomalRoil AnomalRoil merged commit 9a1af8b into master Apr 25, 2025
77 of 79 checks passed
@AnomalRoil AnomalRoil deleted the fix/timediscrepancy branch April 25, 2025 18:47
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.

Drand node joining or leaving network affecting latency

2 participants