From c393610b50ebce81f60d3001b38765089203b7db Mon Sep 17 00:00:00 2001 From: John Lotoski Date: Tue, 2 Apr 2024 18:10:05 -0500 Subject: [PATCH] peerSharing: set non-bp env cfg default true --- cardano-lib/mainnet-config.nix | 3 ++- cardano-lib/preprod-config.nix | 3 ++- cardano-lib/preview-config.nix | 3 ++- cardano-lib/private-config.nix | 3 ++- cardano-lib/sanchonet-config.nix | 3 ++- cardano-lib/shelley_qa-config.nix | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/cardano-lib/mainnet-config.nix b/cardano-lib/mainnet-config.nix index 1986486d..7d87fd0e 100644 --- a/cardano-lib/mainnet-config.nix +++ b/cardano-lib/mainnet-config.nix @@ -26,10 +26,11 @@ # The mainnet does not include the network magic into addresses. Testnets do. RequiresNetworkMagic = "RequiresNoMagic"; EnableP2P = true; + PeerSharing = true; TargetNumberOfActivePeers = 20; TargetNumberOfEstablishedPeers = 50; TargetNumberOfKnownPeers = 100; - TargetNumberOfRootPeers = 100; + TargetNumberOfRootPeers = 60; TraceMempool = false; MaxKnownMajorProtocolVersion = 2; diff --git a/cardano-lib/preprod-config.nix b/cardano-lib/preprod-config.nix index f8c627ac..0c985578 100644 --- a/cardano-lib/preprod-config.nix +++ b/cardano-lib/preprod-config.nix @@ -26,10 +26,11 @@ # The mainnet does not include the network magic into addresses. Testnets do. RequiresNetworkMagic = "RequiresMagic"; EnableP2P = true; + PeerSharing = true; TargetNumberOfActivePeers = 20; TargetNumberOfEstablishedPeers = 50; TargetNumberOfKnownPeers = 100; - TargetNumberOfRootPeers = 100; + TargetNumberOfRootPeers = 60; ##### Update system parameters ##### diff --git a/cardano-lib/preview-config.nix b/cardano-lib/preview-config.nix index 8490e6c7..b0d1c7af 100644 --- a/cardano-lib/preview-config.nix +++ b/cardano-lib/preview-config.nix @@ -19,10 +19,11 @@ Protocol = "Cardano"; RequiresNetworkMagic = "RequiresMagic"; EnableP2P = true; + PeerSharing = true; TargetNumberOfActivePeers = 20; TargetNumberOfEstablishedPeers = 50; TargetNumberOfKnownPeers = 100; - TargetNumberOfRootPeers = 100; + TargetNumberOfRootPeers = 60; ExperimentalHardForksEnabled = false; ExperimentalProtocolsEnabled = false; TestShelleyHardForkAtEpoch = 0; diff --git a/cardano-lib/private-config.nix b/cardano-lib/private-config.nix index c8a0f854..3acbe993 100644 --- a/cardano-lib/private-config.nix +++ b/cardano-lib/private-config.nix @@ -19,10 +19,11 @@ Protocol = "Cardano"; RequiresNetworkMagic = "RequiresMagic"; EnableP2P = true; + PeerSharing = true; TargetNumberOfActivePeers = 20; TargetNumberOfEstablishedPeers = 50; TargetNumberOfKnownPeers = 100; - TargetNumberOfRootPeers = 100; + TargetNumberOfRootPeers = 60; ExperimentalHardForksEnabled = true; ExperimentalProtocolsEnabled = true; TestShelleyHardForkAtEpoch = 0; diff --git a/cardano-lib/sanchonet-config.nix b/cardano-lib/sanchonet-config.nix index 7ad60d3c..7a8304b5 100644 --- a/cardano-lib/sanchonet-config.nix +++ b/cardano-lib/sanchonet-config.nix @@ -19,10 +19,11 @@ Protocol = "Cardano"; RequiresNetworkMagic = "RequiresMagic"; EnableP2P = true; + PeerSharing = true; TargetNumberOfActivePeers = 20; TargetNumberOfEstablishedPeers = 50; TargetNumberOfKnownPeers = 100; - TargetNumberOfRootPeers = 100; + TargetNumberOfRootPeers = 60; ExperimentalHardForksEnabled = true; ExperimentalProtocolsEnabled = true; TestShelleyHardForkAtEpoch = 0; diff --git a/cardano-lib/shelley_qa-config.nix b/cardano-lib/shelley_qa-config.nix index 8d306dcd..806f2673 100644 --- a/cardano-lib/shelley_qa-config.nix +++ b/cardano-lib/shelley_qa-config.nix @@ -19,10 +19,11 @@ Protocol = "Cardano"; RequiresNetworkMagic = "RequiresMagic"; EnableP2P = true; + PeerSharing = true; TargetNumberOfActivePeers = 20; TargetNumberOfEstablishedPeers = 50; TargetNumberOfKnownPeers = 100; - TargetNumberOfRootPeers = 100; + TargetNumberOfRootPeers = 60; ExperimentalHardForksEnabled = true; ExperimentalProtocolsEnabled = true; TestShelleyHardForkAtEpoch = 0;