Skip to content

Commit c4d496d

Browse files
authored
Merge pull request #6300 from IntersectMBO/jl/10.6.0-pre-nix-cfg-updates
Node 10.6.0 config and nix updates
2 parents d238172 + 60c91a1 commit c4d496d

24 files changed

+3279
-3549
lines changed

.github/workflows/check-mainnet-config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
'mainnet-alonzo-genesis.json'
4242
'mainnet-byron-genesis.json'
4343
'mainnet-checkpoints.json'
44-
'mainnet-config-bp.json'
45-
'mainnet-config-bp-legacy.json'
4644
'mainnet-config.json'
4745
'mainnet-config-legacy.json'
4846
'mainnet-peer-snapshot.json'

configuration/cardano/mainnet-config-bp.json

Lines changed: 0 additions & 146 deletions
This file was deleted.

configuration/cardano/mainnet-config-legacy.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"ConsensusMode": "PraosMode",
99
"ConwayGenesisFile": "mainnet-conway-genesis.json",
1010
"ConwayGenesisHash": "15a199f895e461ec0ffc6dd4e4028af28a492ab4e806d39cb674c88f7643ef62",
11-
"EnableP2P": true,
1211
"LastKnownBlockVersion-Alt": 0,
1312
"LastKnownBlockVersion-Major": 3,
1413
"LastKnownBlockVersion-Minor": 0,
@@ -19,8 +18,7 @@
1918
"SnapshotInterval": 4320
2019
},
2120
"MaxKnownMajorProtocolVersion": 2,
22-
"MinNodeVersion": "10.4.0",
23-
"PeerSharing": true,
21+
"MinNodeVersion": "10.6.0",
2422
"Protocol": "Cardano",
2523
"RequiresNetworkMagic": "RequiresNoMagic",
2624
"ShelleyGenesisFile": "mainnet-shelley-genesis.json",

configuration/cardano/mainnet-config.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"ConsensusMode": "PraosMode",
99
"ConwayGenesisFile": "mainnet-conway-genesis.json",
1010
"ConwayGenesisHash": "15a199f895e461ec0ffc6dd4e4028af28a492ab4e806d39cb674c88f7643ef62",
11-
"EnableP2P": true,
1211
"LastKnownBlockVersion-Alt": 0,
1312
"LastKnownBlockVersion-Major": 3,
1413
"LastKnownBlockVersion-Minor": 0,
@@ -19,8 +18,7 @@
1918
"SnapshotInterval": 4320
2019
},
2120
"MaxKnownMajorProtocolVersion": 2,
22-
"MinNodeVersion": "10.4.0",
23-
"PeerSharing": true,
21+
"MinNodeVersion": "10.6.0",
2422
"Protocol": "Cardano",
2523
"RequiresNetworkMagic": "RequiresNoMagic",
2624
"ShelleyGenesisFile": "mainnet-shelley-genesis.json",

configuration/cardano/mainnet-config.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ ShelleyGenesisHash: 1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d927
1414
CheckpointsFile: mainnet-checkpoints.json
1515
CheckpointsFileHash: 3e6dee5bae7acc6d870187e72674b37c929be8c66e62a552cf6a876b1af31ade
1616

17-
EnableP2P: True
18-
1917
##### Core protocol parameters #####
2018

2119
Protocol: Cardano
@@ -36,11 +34,10 @@ MaxKnownMajorProtocolVersion: 2
3634

3735
##### Network Configuration #####
3836

39-
PeerSharing: True
40-
4137
# The following control the number of outbound connections to strictly our upstream peers
4238
# cf. https://developers.cardano.org/docs/operate-a-stake-pool/node-operations/topology
43-
# defaults are provided by ouroboros-network, but can be overridden by uncommenting below:
39+
#
40+
# Defaults are provided by ouroboros-network, but can be overridden by uncommenting below:
4441
# SyncTargetNumberOfActiveBigLedgerPeers: 30
4542
# SyncTargetNumberOfActivePeers: 5
4643
# SyncTargetNumberOfEstablishedBigLedgerPeers: 40
@@ -53,8 +50,15 @@ PeerSharing: True
5350
# TargetNumberOfEstablishedBigLedgerPeers: 10
5451
# TargetNumberOfEstablishedPeers: 30
5552
# TargetNumberOfKnownBigLedgerPeers: 15
56-
# TargetNumberOfKnownPeers: 150
57-
# TargetNumberOfRootPeers: 60
53+
#
54+
# Additionally, as of ouroboros-network `0.22.2` with cardano-node `10.6.0`,
55+
# the following three node config parameters which previously required
56+
# explicit configuration depending on whether the node is a forger are now
57+
# handled automatically.
58+
#
59+
# PeerSharing: false for forgers, true for non-forgers
60+
# TargetNumberOfKnownPeers: set according to forging status
61+
# TargetNumberOfRootPeers: set according to forging status
5862

5963
# When syncing in Genesis mode, this is the minimum number of active connections
6064
# to big ledger peers needed to continue:
@@ -85,7 +89,11 @@ LedgerDB:
8589

8690
##### Version Information #####
8791

88-
MinNodeVersion: 10.4.0
92+
# Min is currently 10.6.0 for proper default handling of PeerSharing,
93+
# TargetNumberOfKnownPeers and TargetNumberOfRootPeers parameters depending
94+
# on whether node is a forger or not, as well as removal of legacy
95+
# networking mode.
96+
MinNodeVersion: 10.6.0
8997

9098
##### Logging configuration #####
9199

0 commit comments

Comments
 (0)