Skip to content

Commit d97d553

Browse files
committed
topology: include the peerSnapshotFile for all networks
1 parent 64ca6f4 commit d97d553

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

cardano-lib/default.nix

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,20 @@ let
7171
bootstrapPeers = map (e: {address = e.addr; inherit (e) port;}) env.edgeNodes;
7272
useLedgerAfterSlot = env.useLedgerAfterSlot;
7373

74-
# Genesis mode is now default for preview and preprod as of node 10.5
75-
peerSnapshotFile =
76-
if elem env.name ["preview" "preprod"]
77-
then "peer-snapshot.json"
78-
else null;
74+
# Genesis mode is now default for preview and preprod as of node 10.5.0.
75+
#
76+
# As of node 10.5.0, the peer snapshot file can be added to the
77+
# topology file with a relative path to itself making the packaging
78+
# cleaner.
79+
#
80+
# As of node 10.6.0, the peer snapshot file can be added to the
81+
# topology file and not be fatal if missing while in PraosMode.
82+
#
83+
# Given that the peer snapshot file will be required as soon as genesis
84+
# mode is default, and migration to genesis mode for all networks is
85+
# coming soon, the snapshot will be declared in all network topologies
86+
# which also makes genesis testing a bit easier.
87+
peerSnapshotFile = "peer-snapshot.json";
7988
};
8089
in
8190
if (env.nodeConfig.EnableP2P or false)

0 commit comments

Comments
 (0)