-
Notifications
You must be signed in to change notification settings - Fork 748
Description
Problem
When using the two-step flow (create-env → cardano --node-env), genesis timestamps become stale between the two invocations. create-env writes start times as now + 15s, but by the time cardano --node-env runs, those times are in the past. The default for updateTimestamps is DontUpdateTimestamps, so unless the user explicitly passes --update-time, the testnet may fail to start.
In the direct cardano path (no --node-env), this is not a problem because createTestnetEnv and cardanoTestnet run back-to-back in the same process.
Proposed fix
In Parsers/Run.hs, in the UserProvidedEnv branch of runCardanoOptions, pass conf{updateTimestamps=UpdateTimestamps} as the default. Consider adding a --no-update-time flag for opt-out.
This is a 1-line change. Updating already-fresh timestamps is harmless (just shifts them by ~15s).