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

[Consensus] rework commit & block timestamps #21347

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

akichidis
Copy link
Contributor

Description

This PR is doing the following:

  1. Is dropping the timestamp monotonicity block ancestor checks. We'll no longer check whether a block's ancestors timestamps are strictly lower than the block in question.
  2. Calculating the commit's timestamp by using the leader's strong ancestors timestamps median.

As it has been discussed, this will make the protocol more robust when it comes to block validity verification and repercussions of it. It is also simplifying the block acceptance path.

Test plan

CI/PT


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@akichidis akichidis requested review from a team and mystenmark as code owners February 25, 2025 11:49
@akichidis akichidis temporarily deployed to sui-typescript-aws-kms-test-env February 25, 2025 11:49 — with GitHub Actions Inactive
Copy link

vercel bot commented Feb 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 25, 2025 5:35pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Feb 25, 2025 5:35pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Feb 25, 2025 5:35pm

@akichidis akichidis force-pushed the akichidis/consensus-block-timestamps-rework branch from 9a4c47b to 23d94da Compare February 25, 2025 14:41
@akichidis akichidis temporarily deployed to sui-typescript-aws-kms-test-env February 25, 2025 14:41 — with GitHub Actions Inactive
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.

1 participant