Skip to content

Conversation

ceyonur
Copy link
Collaborator

@ceyonur ceyonur commented Sep 19, 2025

Why this should be merged

  • We should use default from acp226 package
  • MinDelayExcess should be configurable especially for L1s

Closes: #1243

How this works

Adds MinDelayExcess to genesis spec so it can be marshaled and set in the genesis header.

How this was tested

added tests

Need to be documented?

no (at least not for C-chain)

Need to update RELEASES.md?

updated

@ceyonur ceyonur self-assigned this Sep 19, 2025
@ceyonur ceyonur force-pushed the ceyonur/acp-226-genesis-configuration branch from 9ef4ceb to 56c96a2 Compare September 19, 2025 18:17
@ceyonur ceyonur marked this pull request as ready for review September 19, 2025 18:36
@ceyonur ceyonur requested a review from a team as a code owner September 19, 2025 18:36
*headerExtra.MinDelayExcess = 0 // TODO: decide whether we want this to be configurable by genesis/chainconfig
headerExtra.MinDelayExcess = g.MinDelayExcess
if headerExtra.MinDelayExcess == nil {
headerExtra.MinDelayExcess = utils.NewUint64(acp226.InitialDelayExcess)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it desired for MinDelayExcess to ever by InitialDelayExcess? It seems like MinDelayExcess should be whatever excess puts the minimum minimumBlockDelay at 1 ms, and that MinDelayExcess = InitialDelayExcess would mean that the minimumBlockDelay can never decrease below the initial delay set

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not sure I fully understood what you mean. This sets it to default (2 secs) in the genesis. We still need to take care this in the block building. This only ensures new chains will be starting with 2 secs (from comment here).

@ceyonur ceyonur requested a review from maru-ava as a code owner September 19, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ACP-226 Configureable Genesis Value
2 participants