Skip to content

Commit

Permalink
wb: amend Ouroboros Genesis config on nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeier committed Feb 4, 2025
1 parent aa72c7d commit f53bb13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nix/workbench/service/nodes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ let
then go {} (__head eras) (__tail eras)
else throw "configHardforksIntoEra: unknown era '${era}'";

valency = nodeSpec: length (nodeService nodeSpec).topology.value.Producers;

##
## nodeServiceConfig :: NodeSpec -> ServiceConfig
##
Expand Down Expand Up @@ -104,7 +106,10 @@ let
SnapshotInterval = 4230;
ChainSyncIdleTimeout = 0;

ConsensusMode = "GenesisMode";
ConsensusMode = "GenesisMode";
MinBigLedgerPeersForTrustedState = 0;
SyncTargetNumberOfActivePeers = valency nodeSpec;


ByronGenesisFile = "../genesis/byron/genesis.json";
ShelleyGenesisFile = "../genesis/genesis-shelley.json";
Expand Down

0 comments on commit f53bb13

Please sign in to comment.