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/parlia: reduce block interval to sub second #143

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

NathanBSC
Copy link

@NathanBSC NathanBSC commented Jan 23, 2025

Description

consensus/parlia: reduce block interval to sub second

key design in code level:

  1. delete ParliaConfig.Epoch, but add snapshot.BlockInterval
  2. the unit of snapshot.BlockInterval is milliseconds, and the value of it is set to 500ms
  3. milliseconds use the latest two bytes in ParentBeaconRoot
  4. after Lorentz hardfork,
    change initialBackOffTime to snap.BlockInterval/ 2 for the last block in one turn

Rationale

consensus/parlia: reduce block interval to sub second

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@NathanBSC NathanBSC force-pushed the reduce-block-intervals branch 2 times, most recently from 8bfb013 to 0d95276 Compare January 23, 2025 06:48
params: change unit of ParliaConfig.Period to millisecond from second

consensus/parlia: add a mechanism to update block interval

core/types: use ParentBeaconRoot to represent milliseconds

consensus/parlia: micro adjust initial back off time
@NathanBSC NathanBSC force-pushed the reduce-block-intervals branch from 0d95276 to 5c8d5b7 Compare January 23, 2025 07:25
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