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

[Cleanup] Timestamp GC #3187

Merged
merged 1 commit into from Mar 25, 2024
Merged

[Cleanup] Timestamp GC #3187

merged 1 commit into from Mar 25, 2024

Conversation

mdelle1
Copy link
Collaborator

@mdelle1 mdelle1 commented Mar 24, 2024

Motivation

In Bullshark, timestamps on certificates are used during garbage collection to ensure that slow validators are still able to contribute to the DAG, rather than having their certificates dropped due to a slow network. To accomplish this, Bullshark garbage collects entire rounds rather than individual certificates. In particular, during GC, Bullshark will check if the difference between the median timestamp of a round and the timestamp of the leader being committed exceeds a specified upper bound. If it does, the entire round and those preceding it are garbage collected. Bullshark uses this algorithm to reach a balance between fairness and bounded memory.

@mdelle1 mdelle1 requested a review from howardwu March 24, 2024 22:24
@howardwu howardwu marked this pull request as ready for review March 25, 2024 17:31
Copy link
Member

@howardwu howardwu left a comment

Choose a reason for hiding this comment

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

LGTM, this TODO is deprecated.

@howardwu howardwu merged commit 491f307 into mainnet-staging Mar 25, 2024
24 checks passed
@howardwu howardwu deleted the feat/timestamp-gc branch March 25, 2024 17:32
@howardwu howardwu changed the title Timestamp GC [Cleanup] Timestamp GC Mar 29, 2024
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

2 participants