From 24d9e1a9de27f86a5fbd6cb14459fb25bb05b4c9 Mon Sep 17 00:00:00 2001 From: Pablo Lamela Date: Thu, 26 Feb 2026 00:31:51 +0100 Subject: [PATCH 1/2] Default to `--update-time` and add `--no-update-time` flag --- cardano-testnet/src/Parsers/Cardano.hs | 13 ++++++++----- .../cardano-testnet-golden/files/golden/help.cli | 2 +- .../files/golden/help/cardano.cli | 6 ++++-- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/cardano-testnet/src/Parsers/Cardano.hs b/cardano-testnet/src/Parsers/Cardano.hs index b614f6629d6..2c92dacae73 100644 --- a/cardano-testnet/src/Parsers/Cardano.hs +++ b/cardano-testnet/src/Parsers/Cardano.hs @@ -139,11 +139,14 @@ pMainnetParams = OA.flag' OnChainParamsMainnet ) pUpdateTimestamps :: Parser UpdateTimestamps -pUpdateTimestamps = OA.flag DontUpdateTimestamps UpdateTimestamps - ( OA.long "update-time" - <> OA.help "Update the time stamps in genesis files to current date" - <> OA.showDefault - ) +pUpdateTimestamps = + -- Default to UpdateTimestamps, because when using the two-step flow + -- (cardano-testnet create-env → cardano-testnet cardano --node-env), + -- genesis timestamps can become stale. + -- See https://github.com/IntersectMBO/cardano-node/issues/6455 + OA.flag' UpdateTimestamps (OA.long "update-time" <> OA.help "Update the time stamps in genesis files to current date (default, kept for backward compatibility)") + <|> OA.flag' DontUpdateTimestamps (OA.long "no-update-time" <> OA.help "Do not update the time stamps in genesis files to current date.") + <|> pure UpdateTimestamps pEnvOutputDir :: Parser FilePath pEnvOutputDir = OA.strOption diff --git a/cardano-testnet/test/cardano-testnet-golden/files/golden/help.cli b/cardano-testnet/test/cardano-testnet-golden/files/golden/help.cli index fd1651de326..d6d59c527a2 100644 --- a/cardano-testnet/test/cardano-testnet-golden/files/golden/help.cli +++ b/cardano-testnet/test/cardano-testnet-golden/files/golden/help.cli @@ -14,7 +14,7 @@ Usage: cardano-testnet cardano [--num-pool-nodes COUNT] [--slot-length SECONDS] [--active-slots-coeff DOUBLE] [--node-env FILEPATH] - [--update-time] + [--update-time | --no-update-time] [--params-file FILEPATH | --params-mainnet] Start a testnet and keep it running until stopped diff --git a/cardano-testnet/test/cardano-testnet-golden/files/golden/help/cardano.cli b/cardano-testnet/test/cardano-testnet-golden/files/golden/help/cardano.cli index 91686898ffe..df884a01ca8 100644 --- a/cardano-testnet/test/cardano-testnet-golden/files/golden/help/cardano.cli +++ b/cardano-testnet/test/cardano-testnet-golden/files/golden/help/cardano.cli @@ -12,7 +12,7 @@ Usage: cardano-testnet cardano [--num-pool-nodes COUNT] [--slot-length SECONDS] [--active-slots-coeff DOUBLE] [--node-env FILEPATH] - [--update-time] + [--update-time | --no-update-time] [--params-file FILEPATH | --params-mainnet] Start a testnet and keep it running until stopped @@ -56,7 +56,9 @@ Available options: with the 'create-env' command, then modify it and pass it with this argument. --update-time Update the time stamps in genesis files to current - date + date (default, kept for backward compatibility) + --no-update-time Do not update the time stamps in genesis files to + current date. --params-file FILEPATH File containing custom on-chain parameters in Blockfrost format: https://docs.blockfrost.io/#tag/cardano--epochs/GET/epochs/latest/parameters From 5a4eea573a67d5c6266ec8682ba8a9e8eedc6a40 Mon Sep 17 00:00:00 2001 From: Pablo Lamela Date: Thu, 26 Feb 2026 00:51:36 +0100 Subject: [PATCH 2/2] Add changelog entry --- .../20260226_005016_palas_default_to_update_timestamps.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cardano-testnet/changelog.d/20260226_005016_palas_default_to_update_timestamps.md diff --git a/cardano-testnet/changelog.d/20260226_005016_palas_default_to_update_timestamps.md b/cardano-testnet/changelog.d/20260226_005016_palas_default_to_update_timestamps.md new file mode 100644 index 00000000000..601ffd92964 --- /dev/null +++ b/cardano-testnet/changelog.d/20260226_005016_palas_default_to_update_timestamps.md @@ -0,0 +1,8 @@ +### Added + +- Added `--no-update-time` flag. + +### Changed + +- Made `--update-time` flag the default. +