Skip to content

Commit

Permalink
imp: add peer-snapshot files and update usePeersFromLedgerAfterSlot
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski authored and disassembler committed Feb 25, 2025
1 parent 1083054 commit cb32783
Show file tree
Hide file tree
Showing 4 changed files with 9,114 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cardano-lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ let
mkDbSyncConfig name environments.${name}.nodeConfig (env.extraDbSyncConfig or {});
explorerConfig = mkExplorerConfig name environments.${name}.nodeConfig;
mithrilSignerConfig = mkMithrilSignerConfig name env;
peerSnapshot = fromJSON (readFile ./${name}/peer-snapshot.json);
} // env) {
mainnet = rec {
useByronWallet = true;
Expand Down Expand Up @@ -162,7 +163,7 @@ let
confKey = "mainnet_full";
networkConfig = import ./mainnet-config.nix // minNodeVersion;
networkConfigBp = import ./mainnet-config-bp.nix // minNodeVersion;
usePeersFromLedgerAfterSlot = 128908821;
usePeersFromLedgerAfterSlot = 148350000;
extraDbSyncConfig = {
enableFutureGenesis = true;
};
Expand Down Expand Up @@ -191,7 +192,7 @@ let
edgePort = 3001;
networkConfig = import ./preprod-config.nix // minNodeVersion;
networkConfigBp = import ./preprod-config-bp.nix // minNodeVersion;
usePeersFromLedgerAfterSlot = 64454371;
usePeersFromLedgerAfterSlot = 83894000;
extraDbSyncConfig = {
enableFutureGenesis = true;
};
Expand Down Expand Up @@ -220,7 +221,7 @@ let
edgePort = 3001;
networkConfig = import ./preview-config.nix // minNodeVersion;
networkConfigBp = import ./preview-config-bp.nix // minNodeVersion;
usePeersFromLedgerAfterSlot = 53827185;
usePeersFromLedgerAfterSlot = 73267000;
extraDbSyncConfig = {
enableFutureGenesis = true;
};
Expand All @@ -247,15 +248,13 @@ let
edgePort = 3001;
networkConfig = import ./shelley_qa-config.nix // minNodeVersion;
networkConfigBp = import ./shelley_qa-config-bp.nix // minNodeVersion;

consensusProtocol = networkConfig.Protocol;
nodeConfig = defaultLogConfig // networkConfig;
nodeConfigBp = defaultLogConfig // networkConfigBp;
submitApiConfig = mkSubmitApiConfig "shelley_qa" nodeConfig;
dbSyncConfig = mkDbSyncConfig "shelley_qa" nodeConfig {};
explorerConfig = mkExplorerConfig "shelley_qa" nodeConfig;
mithrilSignerConfig = mkMithrilSignerConfig "shelley_qa" dead_environments.shelley_qa;

usePeersFromLedgerAfterSlot = 31348805;
});

Expand Down
Loading

0 comments on commit cb32783

Please sign in to comment.