Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions playground/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ func (b *ArtifactsBuilder) Build(out *output) error {
if err != nil {
return err
}
// UnmarshalConfig starts from mainnet defaults which has SlotDurationMilliseconds=12000.
// Since SlotDurationMillis() prefers SlotDurationMilliseconds over SecondsPerSlot when > 0,
// we must sync it with the desired block time or the configured SecondsPerSlot is ignored.
clConfig.SlotDurationMilliseconds = b.l1BlockTimeInSeconds * 1000
if err := params.SetActive(clConfig); err != nil {
return err
}
Expand Down