Skip to content

Commit 1c714ae

Browse files
committed
chore: also include checkpoints.json
1 parent 2aa900a commit 1c714ae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nix/internal/launcher-config.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ let
6565
topologyFile = originalFiles + "/topology.json";
6666
peerSnapshotFile = originalFiles + "/peer-snapshot.json";
6767
metadataUrl = tokenMetadataServers.${envName};
68-
};
68+
} // (let
69+
checkpointsFile = originalFiles + "/checkpoints.json";
70+
in if builtins.pathExists checkpointsFile then { inherit checkpointsFile; } else {});
6971
};
7072

7173
dirSep = if os == "windows" then "\\" else "/";
@@ -271,6 +273,9 @@ let
271273
${lib.optionalString (envCfg ? peerSnapshotFile) ''
272274
cp ${envCfg.peerSnapshotFile} $out/peer-snapshot.json
273275
''}
276+
${lib.optionalString (envCfg ? checkpointsFile) ''
277+
cp ${envCfg.checkpointsFile} $out/checkpoints.json
278+
''}
274279
${lib.optionalString (network == "selfnode") ''
275280
cp ${envCfg.delegationCertificate} $out/delegation.cert
276281
cp ${envCfg.signingKey} $out/signing.key

0 commit comments

Comments
 (0)