Skip to content

Commit 094ef60

Browse files
committed
networking: p2p is now the sole network mode
1 parent 4491e24 commit 094ef60

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

cardano-lib/default.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ let
9494
peerSnapshotFile = "${env.name}-peer-snapshot.json";
9595
};
9696
in
97-
if (env.nodeConfig.EnableP2P or false)
97+
# As of node 10.6.0 only p2p networking mode is available. Code supporting
98+
# legacy networking will remain until the Dijkstra hard fork compels an
99+
# upgrade.
100+
if (env.nodeConfig.EnableP2P or true)
98101
then p2pTopology
99102
else legacyTopology;
100103

@@ -144,9 +147,10 @@ let
144147
# as needed. Any node version string suffixes, such as `-pre`, should be
145148
# removed from this string identifier.
146149
#
147-
# Min currently 10.6.0 for proper default handling of PeerSharing,
150+
# Min is currently 10.6.0 for proper default handling of PeerSharing,
148151
# TargetNumberOfKnownPeers and TargetNumberOfRootPeers parameters depending
149-
# on whether node is a forger or not.
152+
# on whether node is a forger or not, as well as removal of legacy
153+
# networking mode.
150154
minNodeVersion = { MinNodeVersion = "10.6.0"; };
151155

152156
mergeTraceOpts = cfg: traceOpts: cfg // {TraceOptions = getAttr "TraceOptions" cfg // traceOpts;};

cardano-lib/mainnet-config.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ with builtins; {
2727

2828
# The mainnet does not include the network magic into addresses. Testnets do.
2929
RequiresNetworkMagic = "RequiresNoMagic";
30-
EnableP2P = true;
3130

3231
MaxKnownMajorProtocolVersion = 2;
3332

cardano-lib/preprod-config.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ with builtins; {
2525

2626
# The mainnet does not include the network magic into addresses. Testnets do.
2727
RequiresNetworkMagic = "RequiresMagic";
28-
EnableP2P = true;
2928

3029
# The consensus mode. If set to "GenesisMode", a path to a peer snapshot
3130
# file will need to be declared in the p2p topology file under key

cardano-lib/preview-config.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ with builtins; {
1919
Protocol = "Cardano";
2020

2121
RequiresNetworkMagic = "RequiresMagic";
22-
EnableP2P = true;
2322

2423
ExperimentalHardForksEnabled = false;
2524
ExperimentalProtocolsEnabled = false;

cardano-lib/testnet-template/config-legacy.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"ApplicationVersion": 0,
55
"ByronGenesisFile": "byron-genesis.json",
66
"ConwayGenesisFile": "conway-genesis.json",
7-
"EnableP2P": true,
87
"ExperimentalHardForksEnabled": true,
98
"ExperimentalProtocolsEnabled": true,
109
"LastKnownBlockVersion-Alt": 0,

cardano-lib/testnet-template/config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"ByronGenesisFile": "byron-genesis.json",
66
"ConsensusMode": "PraosMode",
77
"ConwayGenesisFile": "conway-genesis.json",
8-
"EnableP2P": true,
98
"ExperimentalHardForksEnabled": true,
109
"ExperimentalProtocolsEnabled": true,
1110
"LastKnownBlockVersion-Alt": 0,

0 commit comments

Comments
 (0)