From 4daf70814ec857f1e25d408717323e535e0e1969 Mon Sep 17 00:00:00 2001 From: RdLrT <3169068+rdlrt@users.noreply.github.com> Date: Sun, 21 Apr 2024 18:45:04 +1000 Subject: [PATCH] Update configs and node version support for 8.9.x (#1743) ## Description - [x] Update topology formats - [x] Update baseline node version references - [x] Update node/cli dependency refs and pre-downloaded binaries - [x] Update document references - [x] Update dbsync version --- docs/Build/node-cli.md | 51 +++++++++++++++----- files/configs/guild/config.json | 10 ++-- files/configs/guild/conway-genesis.json | 31 ++++++------ files/configs/guild/db-sync-config.json | 21 ++++++++ files/configs/guild/topology.json | 14 ++++-- files/configs/mainnet/config.json | 4 +- files/configs/mainnet/conway-genesis.json | 41 ++++++++-------- files/configs/mainnet/db-sync-config.json | 21 ++++++++ files/configs/mainnet/topology.json | 40 +++++++++------ files/configs/preprod/config.json | 4 +- files/configs/preprod/conway-genesis.json | 31 ++++++------ files/configs/preprod/db-sync-config.json | 21 ++++++++ files/configs/preprod/topology.json | 27 +++++++++-- files/configs/preview/config.json | 8 +-- files/configs/preview/conway-genesis.json | 31 ++++++------ files/configs/preview/db-sync-config.json | 21 ++++++++ files/configs/preview/topology.json | 27 +++++++++-- files/configs/sanchonet/config.json | 8 +-- files/configs/sanchonet/conway-genesis.json | 31 ++++++------ files/configs/sanchonet/db-sync-config.json | 21 ++++++++ files/configs/sanchonet/topology.json | 17 ++++--- scripts/cnode-helper-scripts/env | 4 +- scripts/cnode-helper-scripts/guild-deploy.sh | 18 ++++--- 23 files changed, 353 insertions(+), 149 deletions(-) diff --git a/docs/Build/node-cli.md b/docs/Build/node-cli.md index cdcc215b8..c41075c4b 100644 --- a/docs/Build/node-cli.md +++ b/docs/Build/node-cli.md @@ -91,23 +91,35 @@ Press Ctrl-C to exit node and return to console. Now that you've tested the basic node operation, you might want to customise your config files (assuming you are in top-level folder , i.e. `cd "${CNODE_HOME}"`) : 1. files/config.json : -This file contains the logging configurations (tracers of to tune logging, paths for other genesis config files, address/ports on which the prometheus/EKG monitoring will listen, etc). Unless running more than one node on same machine (not recommended), you should be alright to use this file as-is. +This file contains the logging configurations (tracers of to tune logging, paths for other genesis config files, address/ports on which the prometheus/EKG monitoring will listen, etc). Unless running more than one node on same machine (not recommended), you should be alright to use most of this file as-is. You might - however - want to double-check `PeerSharing` in this file, if using a relay node where you'd like connecting peers (marked as `"advertise": "true"` in topology.json) to be shared , you may turn this setting to `true`. 2. files/topology.json : This file tells your node how to connect to other nodes (especially initially to start synching). You would want to update this file as below: - * Update the `localRoots` > `accessPoints` section to include your local nodes that you want persistent connection against (eg: this could be your BP and own relay nodes). - * You'd want to update `localRoots` > `valency` to number of connections from your localRoots that you always want to keep active connection to. - * [Optional] - you can add/remove nodes from `publicRoots` section, tho defaults populated should work fine. On mainnet, we did add a few additional nodes to help add more redundancy for initial sync - should IO/Emurgo decide to change DNS entries of their nodes. - * `useLedgerAfterSlot` tells the node to establish networking with nodes from localRoots/publicRoots to sync the node initially until reaching an absolute slot number, after which - it can start attempting to connect to peers registered as pool relays on the network. You may want this number to be relatively recent (eg: not hace it 50 epochs old) + * Update the `localRoots` > `accessPoints` section to include your local nodes that you want persistent connection against (eg: this could be your BP and own relay nodes) against definition where `trustable` is set to `true`. + * If you want specific peers to be advertised on the network for discovery, you may set `advertise` to `true` for that peer group. You do NOT want to do that on BP + * You'd want to update `localRoots` > `valency` (`valency` is the same as `hotValency`, not yet replaced since the example in cardano-node-wiki repo still suggests `valency`) to number of connections from your localRoots that you always want to keep active connection to for that node. + * [Optional] - you can add/remove nodes from `publicRoots` section as well as `localRoots` > `accessPoints` as desired, tho defaults populated should work fine. On mainnet, we did add a few additional nodes to help add more redundancy for initial sync. + * `useLedgerAfterSlot` tells the node to establish networking with nodes from defined peers to sync the node initially until reaching an absolute slot number, after which - it can start attempting to connect to peers registered as pool relays on the network. You may want this number to be relatively recent (eg: not have it 50 epochs old). + * You can read further about topology file configuration [here](https://github.com/input-output-hk/cardano-node-wiki/blob/main/docs/getting-started/understanding-config-files.md#the-p2p-topologyjson-file) !!! important - You'd want to set `useLedgerAfterSlot` to `-1` for your Block Producing (Core) node - thereby, telling your Core node to remain in non-P2P mode. + On BP, You'd want to set `useLedgerAfterSlot` to `-1` for your Block Producing (Core) node - thereby, telling your Core node to remain in non-P2P mode, and ensure `PeerSharing` is to `false`. The resultant topology file could look something like below: ``` json { + "bootstrapPeers": [ + { + "address": "backbone.cardano.iog.io", + "port": 3001 + }, + { + "address": "backbone.mainnet.emurgornd.com", + "port": 3001 + } + ], "localRoots": [ { "accessPoints": [ @@ -115,19 +127,36 @@ The resultant topology file could look something like below: {"address": "xx.xx.xx.yy", "port": 6000 } ], "advertise": false, + "trustable": true, "valency": 2 + }, + { + "accessPoints": [ + {"address": "node-dus.poolunder.com", "port": 6900, "pool": "UNDR", "location": "EU/DE/Dusseldorf" }, + {"address": "node-syd.poolunder.com", "port": 6900, "pool": "UNDR", "location": "OC/AU/Sydney" }, + {"address": "194.36.145.157", "port": 6000, "pool": "RDLRT", "location": "EU/DE/Baden" }, + {"address": "152.53.18.60", "port": 6000, "pool": "RDLRT", "location": "NA/US/StLouis" }, + {"address": "148.72.153.168", "port": 16000, "pool": "AAA", "location": "US/StLouis" }, + {"address": "78.47.99.41", "port": 6000, "pool": "AAA", "location": "EU/DE/Nuremberg" }, + {"address": "relay1-pub.ahlnet.nu", "port": 2111, "pool": "AHL", "location": "EU/SE/Malmo" }, + {"address": "relay2-pub.ahlnet.nu", "port": 2111, "pool": "AHL", "location": "EU/SE/Malmo" }, + {"address": "relay1.clio.one", "port": 6010, "pool": "CLIO", "location": "EU/IT/Milan" }, + {"address": "relay2.clio.one", "port": 6010, "pool": "CLIO", "location": "EU/IT/Bozlano" }, + {"address": "relay3.clio.one", "port": 6010, "pool": "CLIO", "location": "EU/IT/Bozlano" } + ], + "advertise": false, + "trustable": false, + "valency": 5, + "warmValency": 10 } ], "publicRoots": [ { - "accessPoints": [ - {"address": "...", "port": 3001 }, - {"address": "...", "port": 6000 } - ], + "accessPoints": [], "advertise": false } ], - "useLedgerAfterSlot": 67067585 + "useLedgerAfterSlot": 119160667 } ``` diff --git a/files/configs/guild/config.json b/files/configs/guild/config.json index 164dbb4e0..024ea00a8 100644 --- a/files/configs/guild/config.json +++ b/files/configs/guild/config.json @@ -3,21 +3,21 @@ "ByronGenesisFile": "/opt/cardano/cnode/files/byron-genesis.json", "ConwayGenesisFile": "/opt/cardano/cnode/files/conway-genesis.json", "EnableP2P": true, - "ExperimentalHardForksEnabled": false, - "ExperimentalProtocolsEnabled": false, "LastKnownBlockVersion-Alt": 0, "LastKnownBlockVersion-Major": 3, "LastKnownBlockVersion-Minor": 1, + "MinNodeVersion": "8.9.2", + "PeerSharing": true, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", "PBftSignatureThreshold": 1, "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", + "EnableLogging": true, + "EnableLogMetrics": false, "TargetNumberOfActivePeers": 10, "TargetNumberOfEstablishedPeers": 25, "TargetNumberOfKnownPeers": 50, - "TargetNumberOfRootPeers": 50, - "EnableLogging": true, - "EnableLogMetrics": false, + "TargetNumberOfRootPeers": 25, "TraceAcceptPolicy": true, "TraceBlockFetchClient": true, "TraceBlockFetchDecisions": false, diff --git a/files/configs/guild/conway-genesis.json b/files/configs/guild/conway-genesis.json index 14d9c0f65..e690f455f 100644 --- a/files/configs/guild/conway-genesis.json +++ b/files/configs/guild/conway-genesis.json @@ -1,21 +1,22 @@ { "poolVotingThresholds": { - "pvtCommitteeNormal": 0.51, - "pvtCommitteeNoConfidence": 0.51, - "pvtHardForkInitiation": 0.51, - "pvtMotionNoConfidence": 0.51 + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "hardForkInitiation": 0.51, + "motionNoConfidence": 0.51, + "ppSecurityGroup": 0.51 }, "dRepVotingThresholds": { - "dvtMotionNoConfidence": 0.51, - "dvtCommitteeNormal": 0.51, - "dvtCommitteeNoConfidence": 0.51, - "dvtUpdateToConstitution": 0.51, - "dvtHardForkInitiation": 0.51, - "dvtPPNetworkGroup": 0.51, - "dvtPPEconomicGroup": 0.51, - "dvtPPTechnicalGroup": 0.51, - "dvtPPGovGroup": 0.51, - "dvtTreasuryWithdrawal": 0.51 + "motionNoConfidence": 0.51, + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "updateToConstitution": 0.51, + "hardForkInitiation": 0.51, + "ppNetworkGroup": 0.51, + "ppEconomicGroup": 0.51, + "ppTechnicalGroup": 0.51, + "ppGovGroup": 0.51, + "treasuryWithdrawal": 0.51 }, "committeeMinSize": 0, "committeeMaxTermLength": 200, @@ -34,4 +35,4 @@ }, "quorum": 0 } -} +} \ No newline at end of file diff --git a/files/configs/guild/db-sync-config.json b/files/configs/guild/db-sync-config.json index cd0ab0c72..f4eb590fc 100644 --- a/files/configs/guild/db-sync-config.json +++ b/files/configs/guild/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/files/configs/guild/topology.json b/files/configs/guild/topology.json index af414012a..0a657c1d6 100644 --- a/files/configs/guild/topology.json +++ b/files/configs/guild/topology.json @@ -5,10 +5,9 @@ {"address": "127.0.0.1", "port": 6000, "description": "replace-this-with-BP"} ], "advertise": false, + "trustable": true, "valency": 1 - } - ], - "publicRoots": [ + }, { "accessPoints": [ {"address": "209.145.50.190" ,"port": 7001, "name": "rdlrt"}, @@ -18,6 +17,15 @@ {"address": "185.161.193.105" ,"port": 6011, "name": "clio-1"}, {"address": "relay-guild.adaplus.io" ,"port": 6000, "name": "adaplus"} ], + "advertise": false, + "trustable": false, + "valency": 3, + "warmValency": 5 + } + ], + "publicRoots": [ + { + "accessPoints": [], "advertise": false } ], diff --git a/files/configs/mainnet/config.json b/files/configs/mainnet/config.json index 722d1f6fd..a60ea7136 100644 --- a/files/configs/mainnet/config.json +++ b/files/configs/mainnet/config.json @@ -7,6 +7,8 @@ "LastKnownBlockVersion-Major": 3, "LastKnownBlockVersion-Minor": 0, "MaxKnownMajorProtocolVersion": 2, + "MinNodeVersion": "8.9.2", + "PeerSharing": false, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresNoMagic", "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", @@ -15,7 +17,7 @@ "TargetNumberOfActivePeers": 20, "TargetNumberOfEstablishedPeers": 50, "TargetNumberOfKnownPeers": 100, - "TargetNumberOfRootPeers": 100, + "TargetNumberOfRootPeers": 60, "TraceAcceptPolicy": true, "TraceBlockFetchClient": true, "TraceBlockFetchDecisions": false, diff --git a/files/configs/mainnet/conway-genesis.json b/files/configs/mainnet/conway-genesis.json index 078d33b18..e690f455f 100644 --- a/files/configs/mainnet/conway-genesis.json +++ b/files/configs/mainnet/conway-genesis.json @@ -1,28 +1,29 @@ { "poolVotingThresholds": { - "pvtCommitteeNormal": 0.51, - "pvtCommitteeNoConfidence": 0.51, - "pvtHardForkInitiation": 0.51, - "pvtMotionNoConfidence": 0.51 + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "hardForkInitiation": 0.51, + "motionNoConfidence": 0.51, + "ppSecurityGroup": 0.51 }, "dRepVotingThresholds": { - "dvtMotionNoConfidence": 0.51, - "dvtCommitteeNormal": 0.51, - "dvtCommitteeNoConfidence": 0.51, - "dvtUpdateToConstitution": 0.51, - "dvtHardForkInitiation": 0.51, - "dvtPPNetworkGroup": 0.51, - "dvtPPEconomicGroup": 0.51, - "dvtPPTechnicalGroup": 0.51, - "dvtPPGovGroup": 0.51, - "dvtTreasuryWithdrawal": 0.51 + "motionNoConfidence": 0.51, + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "updateToConstitution": 0.51, + "hardForkInitiation": 0.51, + "ppNetworkGroup": 0.51, + "ppEconomicGroup": 0.51, + "ppTechnicalGroup": 0.51, + "ppGovGroup": 0.51, + "treasuryWithdrawal": 0.51 }, "committeeMinSize": 0, - "committeeMaxTermLength": 60, - "govActionLifetime": 14, - "govActionDeposit": 0, - "dRepDeposit": 0, - "dRepActivity": 0, + "committeeMaxTermLength": 200, + "govActionLifetime": 10, + "govActionDeposit": 1000000000, + "dRepDeposit": 2000000, + "dRepActivity": 20, "constitution": { "anchor": { "url": "", @@ -34,4 +35,4 @@ }, "quorum": 0 } -} +} \ No newline at end of file diff --git a/files/configs/mainnet/db-sync-config.json b/files/configs/mainnet/db-sync-config.json index c9eda7c0b..74d16e5bf 100644 --- a/files/configs/mainnet/db-sync-config.json +++ b/files/configs/mainnet/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/files/configs/mainnet/topology.json b/files/configs/mainnet/topology.json index e6a5f7dc4..ab5bdb447 100644 --- a/files/configs/mainnet/topology.json +++ b/files/configs/mainnet/topology.json @@ -1,4 +1,14 @@ { + "bootstrapPeers": [ + { + "address": "backbone.cardano.iog.io", + "port": 3001 + }, + { + "address": "backbone.mainnet.emurgornd.com", + "port": 3001 + } + ], "localRoots": [ { "accessPoints": [ @@ -6,34 +16,34 @@ {"address": "127.0.0.1", "port": 6001, "description": "replace-this-with-relay"} ], "advertise": false, - "valency_INFO": "set the .localRoots.valency to the number of configured accessPoints", + "trustable": true, "valency": 2 - } - ], - "publicRoots": [ + }, { "accessPoints": [ - {"address": "backbone.cardano-mainnet.iohk.io", "port": 3001, "location": "various" }, - {"address": "backbone.cardano.iog.io", "port": 3001, "location": "various" }, - {"address": "backbone.mainnet.emurgornd.com", "port": 3001, "location": "various" }, {"address": "node-dus.poolunder.com", "port": 6900, "pool": "UNDR", "location": "EU/DE/Dusseldorf" }, {"address": "node-syd.poolunder.com", "port": 6900, "pool": "UNDR", "location": "OC/AU/Sydney" }, {"address": "194.36.145.157", "port": 6000, "pool": "RDLRT", "location": "EU/DE/Baden" }, - {"address": "89.58.43.194", "port": 6000, "pool": "RDLRT", "location": "NA/US/StLouis" }, - {"address": "148.72.153.168", "port": 16000, "pool": "AAA", "location": "US/StLouis" }, + {"address": "152.53.18.60", "port": 6000, "pool": "RDLRT", "location": "NA/US/StLouis" }, + {"address": "148.72.153.168", "port": 16000, "pool": "AAA", "location": "US/StLouis" }, {"address": "78.47.99.41", "port": 6000, "pool": "AAA", "location": "EU/DE/Nuremberg" }, {"address": "relay1-pub.ahlnet.nu", "port": 2111, "pool": "AHL", "location": "EU/SE/Malmo" }, {"address": "relay2-pub.ahlnet.nu", "port": 2111, "pool": "AHL", "location": "EU/SE/Malmo" }, {"address": "relay1.clio.one", "port": 6010, "pool": "CLIO", "location": "EU/IT/Milan" }, {"address": "relay2.clio.one", "port": 6010, "pool": "CLIO", "location": "EU/IT/Bozlano" }, - {"address": "relay3.clio.one", "port": 6010, "pool": "CLIO", "location": "EU/IT/Bozlano" }, - {"address": "164.90.197.139", "port": 6000, "name": "EDEN", "location": "EU/NL/Amsterdam" }, - {"address": "128.199.187.2", "port": 6000, "name": "EDEN", "location": "AS/SG/Singapore" }, - {"address": "198.199.70.70", "port": 6000, "name": "EDEN", "location": "NA/US/NorthBergen" } + {"address": "relay3.clio.one", "port": 6010, "pool": "CLIO", "location": "EU/IT/Bozlano" } ], + "advertise": false, + "trustable": false, + "valency": 5, + "warmValency": 10 + } + ], + "publicRoots": [ + { + "accessPoints": [], "advertise": false } ], - "useLedgerAfterSlot_INFO": "the node will use the .publicRoots.accessPoints only until he synchronised up to slot .useLedgerAfterSlot. then P2P peering jumps in, plus static links to .localRoots.accessPoints", - "useLedgerAfterSlot": 114590908 + "useLedgerAfterSlot": 119160667 } diff --git a/files/configs/preprod/config.json b/files/configs/preprod/config.json index 86e1ff01a..7523ba613 100644 --- a/files/configs/preprod/config.json +++ b/files/configs/preprod/config.json @@ -6,6 +6,8 @@ "LastKnownBlockVersion-Alt": 0, "LastKnownBlockVersion-Major": 2, "LastKnownBlockVersion-Minor": 0, + "MinNodeVersion": "8.9.2", + "PeerSharing": false, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", @@ -14,7 +16,7 @@ "TargetNumberOfActivePeers": 20, "TargetNumberOfEstablishedPeers": 50, "TargetNumberOfKnownPeers": 100, - "TargetNumberOfRootPeers": 100, + "TargetNumberOfRootPeers": 60, "TraceAcceptPolicy": true, "TraceBlockFetchClient": true, "TraceBlockFetchDecisions": false, diff --git a/files/configs/preprod/conway-genesis.json b/files/configs/preprod/conway-genesis.json index 14d9c0f65..e690f455f 100644 --- a/files/configs/preprod/conway-genesis.json +++ b/files/configs/preprod/conway-genesis.json @@ -1,21 +1,22 @@ { "poolVotingThresholds": { - "pvtCommitteeNormal": 0.51, - "pvtCommitteeNoConfidence": 0.51, - "pvtHardForkInitiation": 0.51, - "pvtMotionNoConfidence": 0.51 + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "hardForkInitiation": 0.51, + "motionNoConfidence": 0.51, + "ppSecurityGroup": 0.51 }, "dRepVotingThresholds": { - "dvtMotionNoConfidence": 0.51, - "dvtCommitteeNormal": 0.51, - "dvtCommitteeNoConfidence": 0.51, - "dvtUpdateToConstitution": 0.51, - "dvtHardForkInitiation": 0.51, - "dvtPPNetworkGroup": 0.51, - "dvtPPEconomicGroup": 0.51, - "dvtPPTechnicalGroup": 0.51, - "dvtPPGovGroup": 0.51, - "dvtTreasuryWithdrawal": 0.51 + "motionNoConfidence": 0.51, + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "updateToConstitution": 0.51, + "hardForkInitiation": 0.51, + "ppNetworkGroup": 0.51, + "ppEconomicGroup": 0.51, + "ppTechnicalGroup": 0.51, + "ppGovGroup": 0.51, + "treasuryWithdrawal": 0.51 }, "committeeMinSize": 0, "committeeMaxTermLength": 200, @@ -34,4 +35,4 @@ }, "quorum": 0 } -} +} \ No newline at end of file diff --git a/files/configs/preprod/db-sync-config.json b/files/configs/preprod/db-sync-config.json index 77b77268e..4868b1dd6 100644 --- a/files/configs/preprod/db-sync-config.json +++ b/files/configs/preprod/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/files/configs/preprod/topology.json b/files/configs/preprod/topology.json index 93b9b2b29..f1f22d845 100644 --- a/files/configs/preprod/topology.json +++ b/files/configs/preprod/topology.json @@ -1,4 +1,10 @@ { + "bootstrapPeers": [ + { + "address": "preprod-node.play.dev.cardano.org", + "port": 3001 + } + ], "localRoots": [ { "accessPoints": [ @@ -6,16 +12,27 @@ {"address": "127.0.0.1", "port": 6001, "description": "replace-this-with-relay"} ], "advertise": false, - "valency": 1 + "trustable": true, + "valency": 2 + }, + { + "accessPoints": [ + {"address": "preprod-test.ahlnet.nu", "port": 2101, "pool": "AHL"}, + {"address": "154.12.248.114", "port": 6000, "pool": "HOM1"}, + {"address": "tn-preprod.psilobyte.io", "port": 4101, "pool": "PSBT"}, + {"address": "209.145.50.190", "port": 18000, "pool": "RDLRT"} + ], + "advertise": false, + "trustable": false, + "valency": 2, + "warmValency": 3 } ], "publicRoots": [ { - "accessPoints": [ - {"address": "preprod-node.play.dev.cardano.org", "port": 3001} - ], + "accessPoints": [], "advertise": false } ], - "useLedgerAfterSlot": 42855241 + "useLedgerAfterSlot": 55043150 } \ No newline at end of file diff --git a/files/configs/preview/config.json b/files/configs/preview/config.json index 88815b3d7..81d1ed3e3 100644 --- a/files/configs/preview/config.json +++ b/files/configs/preview/config.json @@ -8,19 +8,21 @@ "LastKnownBlockVersion-Alt": 0, "LastKnownBlockVersion-Major": 3, "LastKnownBlockVersion-Minor": 1, + "MinNodeVersion": "8.9.2", + "PeerSharing": false, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", + "EnableLogging": true, + "EnableLogMetrics": false, "TargetNumberOfActivePeers": 20, "TargetNumberOfEstablishedPeers": 50, "TargetNumberOfKnownPeers": 100, - "TargetNumberOfRootPeers": 100, + "TargetNumberOfRootPeers": 60, "TestAllegraHardForkAtEpoch": 0, "TestAlonzoHardForkAtEpoch": 0, "TestMaryHardForkAtEpoch": 0, "TestShelleyHardForkAtEpoch": 0, - "EnableLogging": true, - "EnableLogMetrics": false, "TraceAcceptPolicy": true, "TraceBlockFetchClient": true, "TraceBlockFetchDecisions": false, diff --git a/files/configs/preview/conway-genesis.json b/files/configs/preview/conway-genesis.json index 14d9c0f65..e690f455f 100644 --- a/files/configs/preview/conway-genesis.json +++ b/files/configs/preview/conway-genesis.json @@ -1,21 +1,22 @@ { "poolVotingThresholds": { - "pvtCommitteeNormal": 0.51, - "pvtCommitteeNoConfidence": 0.51, - "pvtHardForkInitiation": 0.51, - "pvtMotionNoConfidence": 0.51 + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "hardForkInitiation": 0.51, + "motionNoConfidence": 0.51, + "ppSecurityGroup": 0.51 }, "dRepVotingThresholds": { - "dvtMotionNoConfidence": 0.51, - "dvtCommitteeNormal": 0.51, - "dvtCommitteeNoConfidence": 0.51, - "dvtUpdateToConstitution": 0.51, - "dvtHardForkInitiation": 0.51, - "dvtPPNetworkGroup": 0.51, - "dvtPPEconomicGroup": 0.51, - "dvtPPTechnicalGroup": 0.51, - "dvtPPGovGroup": 0.51, - "dvtTreasuryWithdrawal": 0.51 + "motionNoConfidence": 0.51, + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "updateToConstitution": 0.51, + "hardForkInitiation": 0.51, + "ppNetworkGroup": 0.51, + "ppEconomicGroup": 0.51, + "ppTechnicalGroup": 0.51, + "ppGovGroup": 0.51, + "treasuryWithdrawal": 0.51 }, "committeeMinSize": 0, "committeeMaxTermLength": 200, @@ -34,4 +35,4 @@ }, "quorum": 0 } -} +} \ No newline at end of file diff --git a/files/configs/preview/db-sync-config.json b/files/configs/preview/db-sync-config.json index 41845e9da..abaee2067 100644 --- a/files/configs/preview/db-sync-config.json +++ b/files/configs/preview/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/files/configs/preview/topology.json b/files/configs/preview/topology.json index 34695fc42..b3717d82f 100644 --- a/files/configs/preview/topology.json +++ b/files/configs/preview/topology.json @@ -1,4 +1,10 @@ { + "bootstrapPeers": [ + { + "address": "preview-node.play.dev.cardano.org", + "port": 3001 + } + ], "localRoots": [ { "accessPoints": [ @@ -6,16 +12,27 @@ {"address": "127.0.0.1", "port": 6001, "description": "replace-this-with-relay"} ], "advertise": false, - "valency": 1 + "trustable": true, + "valency": 2 + }, + { + "accessPoints": [ + {"address": "preview-test.ahlnet.nu", "port": 2102, "pool": "AHL"}, + {"address": "95.216.173.194", "port": 16000, "pool": "HOM1"}, + {"address": "tn-preview.psilobyte.io", "port": 4201, "pool": "PSBT"}, + {"address": "tn-preview2.psilobyte.io", "port": 4202, "pool": "PSBT"} + ], + "advertise": false, + "trustable": false, + "valency": 2, + "warmValency": 3 } ], "publicRoots": [ { - "accessPoints": [ - {"address": "preview-node.play.dev.cardano.org", "port": 3001} - ], + "accessPoints": [], "advertise": false } ], - "useLedgerAfterSlot": 31536600 + "useLedgerAfterSlot": 44070103 } \ No newline at end of file diff --git a/files/configs/sanchonet/config.json b/files/configs/sanchonet/config.json index f5c123b7c..471fb23b9 100644 --- a/files/configs/sanchonet/config.json +++ b/files/configs/sanchonet/config.json @@ -8,19 +8,21 @@ "LastKnownBlockVersion-Alt": 0, "LastKnownBlockVersion-Major": 3, "LastKnownBlockVersion-Minor": 1, + "MinNodeVersion": "8.10.0", + "PeerSharing": false, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", + "EnableLogging": true, + "EnableLogMetrics": false, "TargetNumberOfActivePeers": 20, "TargetNumberOfEstablishedPeers": 50, "TargetNumberOfKnownPeers": 100, - "TargetNumberOfRootPeers": 100, + "TargetNumberOfRootPeers": 60, "TestAllegraHardForkAtEpoch": 0, "TestAlonzoHardForkAtEpoch": 0, "TestMaryHardForkAtEpoch": 0, "TestShelleyHardForkAtEpoch": 0, - "EnableLogging": true, - "EnableLogMetrics": false, "TraceAcceptPolicy": true, "TraceBlockFetchClient": true, "TraceBlockFetchDecisions": false, diff --git a/files/configs/sanchonet/conway-genesis.json b/files/configs/sanchonet/conway-genesis.json index 14d9c0f65..e690f455f 100644 --- a/files/configs/sanchonet/conway-genesis.json +++ b/files/configs/sanchonet/conway-genesis.json @@ -1,21 +1,22 @@ { "poolVotingThresholds": { - "pvtCommitteeNormal": 0.51, - "pvtCommitteeNoConfidence": 0.51, - "pvtHardForkInitiation": 0.51, - "pvtMotionNoConfidence": 0.51 + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "hardForkInitiation": 0.51, + "motionNoConfidence": 0.51, + "ppSecurityGroup": 0.51 }, "dRepVotingThresholds": { - "dvtMotionNoConfidence": 0.51, - "dvtCommitteeNormal": 0.51, - "dvtCommitteeNoConfidence": 0.51, - "dvtUpdateToConstitution": 0.51, - "dvtHardForkInitiation": 0.51, - "dvtPPNetworkGroup": 0.51, - "dvtPPEconomicGroup": 0.51, - "dvtPPTechnicalGroup": 0.51, - "dvtPPGovGroup": 0.51, - "dvtTreasuryWithdrawal": 0.51 + "motionNoConfidence": 0.51, + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "updateToConstitution": 0.51, + "hardForkInitiation": 0.51, + "ppNetworkGroup": 0.51, + "ppEconomicGroup": 0.51, + "ppTechnicalGroup": 0.51, + "ppGovGroup": 0.51, + "treasuryWithdrawal": 0.51 }, "committeeMinSize": 0, "committeeMaxTermLength": 200, @@ -34,4 +35,4 @@ }, "quorum": 0 } -} +} \ No newline at end of file diff --git a/files/configs/sanchonet/db-sync-config.json b/files/configs/sanchonet/db-sync-config.json index 75bef3626..460ac4e40 100644 --- a/files/configs/sanchonet/db-sync-config.json +++ b/files/configs/sanchonet/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/files/configs/sanchonet/topology.json b/files/configs/sanchonet/topology.json index 76c6c7452..f57a90a83 100644 --- a/files/configs/sanchonet/topology.json +++ b/files/configs/sanchonet/topology.json @@ -1,20 +1,23 @@ { + "bootstrapPeers": [ + { + "address": "sanchonet-node.play.dev.cardano.org", + "port": 3001 + } + ], "localRoots": [ { - "accessPoints": [ - {"address": "127.0.0.1", "port": 6000, "description": "replace-this-with-BP"} - ], + "accessPoints": [], "advertise": false, + "trustable": false, "valency": 1 } ], "publicRoots": [ { - "accessPoints": [ - {"address": "sanchonet-node.play.dev.cardano.org", "port": 3001} - ], + "accessPoints": [], "advertise": false } ], - "useLedgerAfterSlot": 14601600 + "useLedgerAfterSlot": 21599922 } \ No newline at end of file diff --git a/scripts/cnode-helper-scripts/env b/scripts/cnode-helper-scripts/env index 7ccef65d4..a2a9d3f4d 100644 --- a/scripts/cnode-helper-scripts/env +++ b/scripts/cnode-helper-scripts/env @@ -929,8 +929,8 @@ fi node_version="$(${CNODEBIN} version | head -1 | cut -d' ' -f2)" cli_version="$(${CCLI} version | head -1 | cut -d' ' -f2)" -if ! versionCheck "8.7.3" "${node_version}" || ! versionCheck "8.17.0.0" "${cli_version}"; then - echo -e "\nKoios scripts have now been upgraded to support cardano-node 8.7.x ('${node_version}' found) / cardano-cli 8.17.x.x ('${cli_version}' found).\nPlease update cardano-node binaries (ensure to read release notes and update various configs using guild-deploy (use appropriate options to download/install/overwrite parts you need) or use tagged branches for older node version (eg: ./