From f2ea690dd069b0c3bfa6cc9f808fd2ecb06624b8 Mon Sep 17 00:00:00 2001 From: femi Date: Wed, 20 May 2026 11:50:08 +0100 Subject: [PATCH 1/4] feat(tracing): vendor conway_fast cluster scripts with trace-dispatcher config Add cardano_node_tests/cluster_scripts/conway_fast/ to override the cardonnay-installed scripts for the default regression variant. The vendored template-config.json uses trace-dispatcher exclusively: TraceOptions with EKGBackend, PrometheusSimple, and stdout output. All legacy iohk-monitoring fields (hasEKG, hasPrometheus, Trace* booleans, setupScribes, mapBackends, etc.) are removed. Update logfiles.py to ignore Forge.Loop.DidntAdoptBlock in the new trace-dispatcher log format, matching the existing TraceDidntAdoptBlock entry for the legacy format. conway_slow and mainnet_fast continue to use the cardonnay-installed scripts. --- .../conway_fast/byron-params.json | 23 + .../conway_fast/cardano-node-bft1 | 15 + .../conway_fast/dbsync-config.yaml | 116 ++++ .../conway_fast/genesis.alonzo.spec.json | 546 ++++++++++++++++++ .../conway_fast/genesis.conway.spec.json | 292 ++++++++++ .../conway_fast/genesis.dijkstra.spec.json | 6 + .../conway_fast/genesis.spec.json | 44 ++ .../cluster_scripts/conway_fast/start-cluster | 4 + .../conway_fast/submit-api-config.json | 121 ++++ .../conway_fast/template-cardano-node-pool | 18 + .../conway_fast/template-config.json | 42 ++ .../cluster_scripts/conway_fast/testnet.json | 15 + cardano_node_tests/utils/logfiles.py | 1 + 13 files changed, 1243 insertions(+) create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/byron-params.json create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/cardano-node-bft1 create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/dbsync-config.yaml create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/genesis.alonzo.spec.json create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/genesis.conway.spec.json create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/genesis.dijkstra.spec.json create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/genesis.spec.json create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/start-cluster create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/submit-api-config.json create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/template-cardano-node-pool create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/template-config.json create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/testnet.json diff --git a/cardano_node_tests/cluster_scripts/conway_fast/byron-params.json b/cardano_node_tests/cluster_scripts/conway_fast/byron-params.json new file mode 100644 index 000000000..d424e4d50 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/byron-params.json @@ -0,0 +1,23 @@ +{ + "heavyDelThd": "300000000000", + "maxBlockSize": "2000000", + "maxTxSize": "4096", + "maxHeaderSize": "2000000", + "maxProposalSize": "700", + "mpcThd": "20000000000000", + "scriptVersion": 0, + "slotDuration": "2000", + "softforkRule": { + "initThd": "900000000000000", + "minThd": "600000000000000", + "thdDecrement": "50000000000000" + }, + "txFeePolicy": { + "multiplier": "43946000000", + "summand": "155381000000000" + }, + "unlockStakeEpoch": "18446744073709551615", + "updateImplicit": "10000", + "updateProposalThd": "100000000000000", + "updateVoteThd": "1000000000000" +} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/cardano-node-bft1 b/cardano_node_tests/cluster_scripts/conway_fast/cardano-node-bft1 new file mode 100644 index 000000000..9cf5ffab0 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/cardano-node-bft1 @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +echo "Starting cardano-node run with PID $$: cardano-node run" + echo "--config ./state-cluster%%INSTANCE_NUM%%/config-bft1.json" + echo "--database-path ./state-cluster%%INSTANCE_NUM%%/db-bft1" + echo "--topology ./state-cluster%%INSTANCE_NUM%%/topology-bft1.json" + echo "--host-addr 127.0.0.1" + echo "--port %%NODE_PORT_BASE%%" + echo "--socket-path ./state-cluster%%INSTANCE_NUM%%/bft1.socket $*" + +echo "..or, once again, in a single line:" +echo "cardano-node run --config ./state-cluster%%INSTANCE_NUM%%/config-bft1.json --database-path ./state-cluster%%INSTANCE_NUM%%/db-bft1 --topology ./state-cluster%%INSTANCE_NUM%%/topology-bft1.json --host-addr 127.0.0.1 --port %%NODE_PORT_BASE%% --socket-path ./state-cluster%%INSTANCE_NUM%%/bft1.socket $*" + + +exec cardano-node run --config ./state-cluster%%INSTANCE_NUM%%/config-bft1.json --database-path ./state-cluster%%INSTANCE_NUM%%/db-bft1 --topology ./state-cluster%%INSTANCE_NUM%%/topology-bft1.json --host-addr 127.0.0.1 --port %%NODE_PORT_BASE%% --socket-path ./state-cluster%%INSTANCE_NUM%%/bft1.socket "$@" diff --git a/cardano_node_tests/cluster_scripts/conway_fast/dbsync-config.yaml b/cardano_node_tests/cluster_scripts/conway_fast/dbsync-config.yaml new file mode 100644 index 000000000..71b4b7269 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/dbsync-config.yaml @@ -0,0 +1,116 @@ +# Explorer DB Node configuration + +NetworkName: localnet + +EnableLogMetrics: False +EnableLogging: True +EnableFutureGenesis: True + +# The default port is 8080 +# PrometheusPort: 8080 + +# The config file for the node we are connecting to. If this is not the correct +# config, it will likely lead to db-sync throwing up weird error messages from +# the consensus layer. +# The path to the node config file is relative to this config file. +NodeConfigFile: config-bft1.json + +# ------------------------------------------------------------------------------ +# Logging configuration follows. + +# global filter; messages must have at least this severity to pass: +minSeverity: Info + +# global file rotation settings: +rotation: + rpLogLimitBytes: 5000000 + rpKeepFilesNum: 10 + rpMaxAgeHours: 24 + +# these backends are initialized: +setupBackends: + - AggregationBK + - KatipBK + # - EditorBK + # - EKGViewBK + +# if not indicated otherwise, then messages are passed to these backends: +defaultBackends: + - KatipBK + +# if wanted, the GUI is listening on this port: +# hasGUI: 12787 + +# if wanted, the EKG interface is listening on this port: +# hasEKG: 12788 + +# here we set up outputs of logging in 'katip': +setupScribes: + - scKind: StdoutSK + scName: stdout + scFormat: ScText + scRotation: null + +# if not indicated otherwise, then log output is directed to this: +defaultScribes: + - - StdoutSK + - stdout + +# more options which can be passed as key-value pairs: +options: + cfokey: + value: "Release-1.0.0" + mapSubtrace: + benchmark: + contents: + - GhcRtsStats + - MonotonicClock + subtrace: ObservableTrace + '#ekgview': + contents: + - - tag: Contains + contents: 'cardano.epoch-validation.benchmark' + - - tag: Contains + contents: .monoclock.basic. + - - tag: Contains + contents: 'cardano.epoch-validation.benchmark' + - - tag: Contains + contents: diff.RTS.cpuNs.timed. + - - tag: StartsWith + contents: '#ekgview.#aggregation.cardano.epoch-validation.benchmark' + - - tag: Contains + contents: diff.RTS.gcNum.timed. + subtrace: FilterTrace + 'cardano.epoch-validation.utxo-stats': + # Change the `subtrace` value to `Neutral` in order to log + # `UTxO`-related messages during epoch validation. + subtrace: NoTrace + '#messagecounters.aggregation': + subtrace: NoTrace + '#messagecounters.ekgview': + subtrace: NoTrace + '#messagecounters.switchboard': + subtrace: NoTrace + '#messagecounters.katip': + subtrace: NoTrace + '#messagecounters.monitoring': + subtrace: NoTrace + 'cardano.#messagecounters.aggregation': + subtrace: NoTrace + 'cardano.#messagecounters.ekgview': + subtrace: NoTrace + 'cardano.#messagecounters.switchboard': + subtrace: NoTrace + 'cardano.#messagecounters.katip': + subtrace: NoTrace + 'cardano.#messagecounters.monitoring': + subtrace: NoTrace + mapBackends: + cardano.epoch-validation.benchmark: + - AggregationBK + '#aggregation.cardano.epoch-validation.benchmark': + - EKGViewBK + mapSeverity: + db-sync-node.Subscription: Error + db-sync-node.Mux: Error + db-sync-node: Info diff --git a/cardano_node_tests/cluster_scripts/conway_fast/genesis.alonzo.spec.json b/cardano_node_tests/cluster_scripts/conway_fast/genesis.alonzo.spec.json new file mode 100644 index 000000000..a056c286e --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/genesis.alonzo.spec.json @@ -0,0 +1,546 @@ +{ + "collateralPercentage": 150, + "costModels": { + "PlutusV1": [ + 205665, + 812, + 1, + 1, + 1000, + 571, + 0, + 1, + 1000, + 24177, + 4, + 1, + 1000, + 32, + 117366, + 10475, + 4, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 100, + 100, + 23000, + 100, + 19537, + 32, + 175354, + 32, + 46417, + 4, + 221973, + 511, + 0, + 1, + 89141, + 32, + 497525, + 14068, + 4, + 2, + 196500, + 453240, + 220, + 0, + 1, + 1, + 1000, + 28662, + 4, + 2, + 245000, + 216773, + 62, + 1, + 1060367, + 12586, + 1, + 208512, + 421, + 1, + 187000, + 1000, + 52998, + 1, + 80436, + 32, + 43249, + 32, + 1000, + 32, + 80556, + 1, + 57667, + 4, + 1000, + 10, + 197145, + 156, + 1, + 197145, + 156, + 1, + 204924, + 473, + 1, + 208896, + 511, + 1, + 52467, + 32, + 64832, + 32, + 65493, + 32, + 22558, + 32, + 16563, + 32, + 76511, + 32, + 196500, + 453240, + 220, + 0, + 1, + 1, + 69522, + 11687, + 0, + 1, + 60091, + 32, + 196500, + 453240, + 220, + 0, + 1, + 1, + 196500, + 453240, + 220, + 0, + 1, + 1, + 806990, + 30482, + 4, + 1927926, + 82523, + 4, + 265318, + 0, + 4, + 0, + 85931, + 32, + 205665, + 812, + 1, + 1, + 41182, + 32, + 212342, + 32, + 31220, + 32, + 32696, + 32, + 43357, + 32, + 32247, + 32, + 38314, + 32, + 9462713, + 1021, + 10 + ], + "PlutusV2": [ + 205665, + 812, + 1, + 1, + 1000, + 571, + 0, + 1, + 1000, + 24177, + 4, + 1, + 1000, + 32, + 117366, + 10475, + 4, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 100, + 100, + 23000, + 100, + 19537, + 32, + 175354, + 32, + 46417, + 4, + 221973, + 511, + 0, + 1, + 89141, + 32, + 497525, + 14068, + 4, + 2, + 196500, + 453240, + 220, + 0, + 1, + 1, + 1000, + 28662, + 4, + 2, + 245000, + 216773, + 62, + 1, + 1060367, + 12586, + 1, + 208512, + 421, + 1, + 187000, + 1000, + 52998, + 1, + 80436, + 32, + 43249, + 32, + 1000, + 32, + 80556, + 1, + 57667, + 4, + 1000, + 10, + 197145, + 156, + 1, + 197145, + 156, + 1, + 204924, + 473, + 1, + 208896, + 511, + 1, + 52467, + 32, + 64832, + 32, + 65493, + 32, + 22558, + 32, + 16563, + 32, + 76511, + 32, + 196500, + 453240, + 220, + 0, + 1, + 1, + 69522, + 11687, + 0, + 1, + 60091, + 32, + 196500, + 453240, + 220, + 0, + 1, + 1, + 196500, + 453240, + 220, + 0, + 1, + 1, + 1159724, + 392670, + 0, + 2, + 806990, + 30482, + 4, + 1927926, + 82523, + 4, + 265318, + 0, + 4, + 0, + 85931, + 32, + 205665, + 812, + 1, + 1, + 41182, + 32, + 212342, + 32, + 31220, + 32, + 32696, + 32, + 43357, + 32, + 32247, + 32, + 38314, + 32, + 35892428, + 10, + 9462713, + 1021, + 10, + 38887044, + 32947, + 10 + ] + }, + "extraConfig": { + "costModels": { + "PlutusV2": [ + 205665, + 812, + 1, + 1, + 1000, + 571, + 0, + 1, + 1000, + 24177, + 4, + 1, + 1000, + 32, + 117366, + 10475, + 4, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 100, + 100, + 23000, + 100, + 19537, + 32, + 175354, + 32, + 46417, + 4, + 221973, + 511, + 0, + 1, + 89141, + 32, + 497525, + 14068, + 4, + 2, + 196500, + 453240, + 220, + 0, + 1, + 1, + 1000, + 28662, + 4, + 2, + 245000, + 216773, + 62, + 1, + 1060367, + 12586, + 1, + 208512, + 421, + 1, + 187000, + 1000, + 52998, + 1, + 80436, + 32, + 43249, + 32, + 1000, + 32, + 80556, + 1, + 57667, + 4, + 1000, + 10, + 197145, + 156, + 1, + 197145, + 156, + 1, + 204924, + 473, + 1, + 208896, + 511, + 1, + 52467, + 32, + 64832, + 32, + 65493, + 32, + 22558, + 32, + 16563, + 32, + 76511, + 32, + 196500, + 453240, + 220, + 0, + 1, + 1, + 69522, + 11687, + 0, + 1, + 60091, + 32, + 196500, + 453240, + 220, + 0, + 1, + 1, + 196500, + 453240, + 220, + 0, + 1, + 1, + 1159724, + 392670, + 0, + 2, + 806990, + 30482, + 4, + 1927926, + 82523, + 4, + 265318, + 0, + 4, + 0, + 85931, + 32, + 205665, + 812, + 1, + 1, + 41182, + 32, + 212342, + 32, + 31220, + 32, + 32696, + 32, + 43357, + 32, + 32247, + 32, + 38314, + 32, + 35892428, + 10, + 9462713, + 1021, + 10, + 38887044, + 32947, + 10 + ] + } + }, + "executionPrices": { + "prMem": 0.0577, + "prSteps": 7.21e-05 + }, + "lovelacePerUTxOWord": 34482, + "maxBlockExUnits": { + "exUnitsMem": 62000000, + "exUnitsSteps": 40000000000 + }, + "maxCollateralInputs": 3, + "maxTxExUnits": { + "exUnitsMem": 14000000, + "exUnitsSteps": 10000000000 + }, + "maxValueSize": 5000 +} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/genesis.conway.spec.json b/cardano_node_tests/cluster_scripts/conway_fast/genesis.conway.spec.json new file mode 100644 index 000000000..17b09d995 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/genesis.conway.spec.json @@ -0,0 +1,292 @@ +{ + "poolVotingThresholds": { + "motionNoConfidence": 0.51, + "committeeNormal": 0.51, + "committeeNoConfidence": 0.51, + "hardForkInitiation": 0.51, + "ppSecurityGroup": 0.51 + }, + "dRepVotingThresholds": { + "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": 11000, + "govActionLifetime": 2, + "govActionDeposit": 100000000, + "dRepDeposit": 2000000, + "dRepActivity": 100, + "minFeeRefScriptCostPerByte": 0, + "plutusV3CostModel": [ + 100788, + 420, + 1, + 1, + 1000, + 173, + 0, + 1, + 1000, + 59957, + 4, + 1, + 11183, + 32, + 201305, + 8356, + 4, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 100, + 100, + 16000, + 100, + 94375, + 32, + 132994, + 32, + 61462, + 4, + 72010, + 178, + 0, + 1, + 22151, + 32, + 91189, + 769, + 4, + 2, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 1000, + 42921, + 4, + 2, + 24548, + 29498, + 38, + 1, + 898148, + 27279, + 1, + 51775, + 558, + 1, + 39184, + 1000, + 60594, + 1, + 141895, + 32, + 83150, + 32, + 15299, + 32, + 76049, + 1, + 13169, + 4, + 22100, + 10, + 28999, + 74, + 1, + 28999, + 74, + 1, + 43285, + 552, + 1, + 44749, + 541, + 1, + 33852, + 32, + 68246, + 32, + 72362, + 32, + 7243, + 32, + 7391, + 32, + 11546, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 90434, + 519, + 0, + 1, + 74433, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 955506, + 213312, + 0, + 2, + 270652, + 22588, + 4, + 1457325, + 64566, + 4, + 20467, + 1, + 4, + 0, + 141992, + 32, + 100788, + 420, + 1, + 1, + 81663, + 32, + 59498, + 32, + 20142, + 32, + 24588, + 32, + 20744, + 32, + 25933, + 32, + 24623, + 32, + 43053543, + 10, + 53384111, + 14333, + 10, + 43574283, + 26308, + 10, + 16000, + 100, + 16000, + 100, + 962335, + 18, + 2780678, + 6, + 442008, + 1, + 52538055, + 3756, + 18, + 267929, + 18, + 76433006, + 8868, + 18, + 52948122, + 18, + 1995836, + 36, + 3227919, + 12, + 901022, + 1, + 166917843, + 4307, + 36, + 284546, + 36, + 158221314, + 26549, + 36, + 74698472, + 36, + 333849714, + 1, + 254006273, + 72, + 2174038, + 72, + 2261318, + 64571, + 4, + 207616, + 8310, + 4, + 1293828, + 28716, + 63, + 0, + 1, + 1006041, + 43623, + 251, + 0, + 1 + ], + "constitution": { + "anchor": { + "url": "", + "dataHash": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + "committee": { + "members": { + }, + "threshold": 0.0 + } +} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/genesis.dijkstra.spec.json b/cardano_node_tests/cluster_scripts/conway_fast/genesis.dijkstra.spec.json new file mode 100644 index 000000000..c33c67557 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/genesis.dijkstra.spec.json @@ -0,0 +1,6 @@ +{ + "maxRefScriptSizePerBlock": 1048576, + "maxRefScriptSizePerTx": 204800, + "refScriptCostStride": 25600, + "refScriptCostMultiplier": 1.2 +} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/genesis.spec.json b/cardano_node_tests/cluster_scripts/conway_fast/genesis.spec.json new file mode 100644 index 000000000..c8a163d37 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/genesis.spec.json @@ -0,0 +1,44 @@ +{ + "activeSlotsCoeff": 0.1, + "protocolParams": { + "poolDeposit": 500000000, + "protocolVersion": { + "minor": 0, + "major": 9 + }, + "minUTxOValue": 1, + "decentralisationParam": 0.8, + "maxTxSize": 16384, + "minPoolCost": 0, + "minFeeA": 44, + "maxBlockBodySize": 65536, + "minFeeB": 155381, + "eMax": 18, + "extraEntropy": { + "tag": "NeutralNonce" + }, + "maxBlockHeaderSize": 1100, + "keyDeposit": 400000, + "nOpt": 500, + "rho": 0.0022, + "tau": 0.05, + "a0": 0.3 + }, + "protocolMagicId": 42, + "genDelegs": {}, + "updateQuorum": 1, + "networkId": "Testnet", + "initialFunds": {}, + "maxLovelaceSupply": 45000000000000000, + "networkMagic": 42, + "epochLength": 1000, + "staking": { + "pools": {}, + "stake": {} + }, + "systemStart": "2020-07-08T02:39:16.033076859Z", + "slotsPerKESPeriod": 129600, + "slotLength": 0.2, + "maxKESEvolutions": 64, + "securityParam": 10 +} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/start-cluster b/cardano_node_tests/cluster_scripts/conway_fast/start-cluster new file mode 100644 index 000000000..094bcc586 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/start-cluster @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +SCRIPT_DIR="$(readlink -m "${0%/*}")" +exec "${SCRIPT_DIR}/common-start-fast" "$@" diff --git a/cardano_node_tests/cluster_scripts/conway_fast/submit-api-config.json b/cardano_node_tests/cluster_scripts/conway_fast/submit-api-config.json new file mode 100644 index 000000000..9decf5f43 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/submit-api-config.json @@ -0,0 +1,121 @@ +{ + "EnableLogMetrics": false, + "EnableLogging": true, + "RequiresNetworkMagic": "RequiresMagic", + "defaultBackends": [ + "KatipBK" + ], + "defaultScribes": [ + [ + "StdoutSK", + "stdout" + ] + ], + "minSeverity": "Info", + "options": { + "cfokey": { + "value": "Release-1.0.0" + }, + "mapBackends": {}, + "mapSeverity": { + "db-sync-node": "Info", + "db-sync-node.Mux": "Error", + "db-sync-node.Subscription": "Error" + }, + "mapSubtrace": { + "#ekgview": { + "contents": [ + [ + { + "contents": "cardano.epoch-validation.benchmark", + "tag": "Contains" + }, + [ + { + "contents": ".monoclock.basic.", + "tag": "Contains" + } + ] + ], + [ + { + "contents": "cardano.epoch-validation.benchmark", + "tag": "Contains" + }, + [ + { + "contents": "diff.RTS.cpuNs.timed.", + "tag": "Contains" + } + ] + ], + [ + { + "contents": "#ekgview.#aggregation.cardano.epoch-validation.benchmark", + "tag": "StartsWith" + }, + [ + { + "contents": "diff.RTS.gcNum.timed.", + "tag": "Contains" + } + ] + ] + ], + "subtrace": "FilterTrace" + }, + "#messagecounters.aggregation": { + "subtrace": "NoTrace" + }, + "#messagecounters.ekgview": { + "subtrace": "NoTrace" + }, + "#messagecounters.katip": { + "subtrace": "NoTrace" + }, + "#messagecounters.monitoring": { + "subtrace": "NoTrace" + }, + "#messagecounters.switchboard": { + "subtrace": "NoTrace" + }, + "benchmark": { + "contents": [ + "GhcRtsStats", + "MonotonicClock" + ], + "subtrace": "ObservableTrace" + }, + "cardano.epoch-validation.utxo-stats": { + "subtrace": "NoTrace" + } + } + }, + "rotation": { + "rpKeepFilesNum": 10, + "rpLogLimitBytes": 5000000, + "rpMaxAgeHours": 24 + }, + "setupBackends": [ + "AggregationBK", + "KatipBK" + ], + "setupScribes": [ + { + "scFormat": "ScText", + "scKind": "StdoutSK", + "scName": "stdout", + "scRotation": null + } + ], + "TraceOptions": { + "": { + "backends" : [ + "EKGBackend", + "Stdout HumanFormatColoured" + ], + "detail": "DNormal", + "severity": "Info" + } + } +} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/template-cardano-node-pool b/cardano_node_tests/cluster_scripts/conway_fast/template-cardano-node-pool new file mode 100644 index 000000000..b0c5c2cf9 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/template-cardano-node-pool @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +echo "Starting cardano-node run with PID $$: cardano-node run" + echo "--config ./state-cluster%%INSTANCE_NUM%%/config-pool%%POOL_NUM%%.json" + echo "--database-path ./state-cluster%%INSTANCE_NUM%%/db-pool%%POOL_NUM%%" + echo "--topology ./state-cluster%%INSTANCE_NUM%%/topology-pool%%POOL_NUM%%.json" + echo "--host-addr 127.0.0.1" + echo "--port %%NODE_PORT%%" + echo "--socket-path ./state-cluster%%INSTANCE_NUM%%/pool%%POOL_NUM%%.socket" + echo "--shelley-vrf-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/vrf.skey" + echo "--shelley-kes-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/kes.skey" + echo "--shelley-operational-certificate ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/op.cert $*" + +echo "..or, once again, in a single line:" +echo "cardano-node run --config ./state-cluster%%INSTANCE_NUM%%/config-pool%%POOL_NUM%%.json --database-path ./state-cluster%%INSTANCE_NUM%%/db-pool%%POOL_NUM%% --topology ./state-cluster%%INSTANCE_NUM%%/topology-pool%%POOL_NUM%%.json --host-addr 127.0.0.1 --port %%NODE_PORT%% --socket-path ./state-cluster%%INSTANCE_NUM%%/pool%%POOL_NUM%%.socket --shelley-vrf-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/vrf.skey --shelley-kes-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/kes.skey --shelley-operational-certificate ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/op.cert $*" + + +exec cardano-node run --config ./state-cluster%%INSTANCE_NUM%%/config-pool%%POOL_NUM%%.json --database-path ./state-cluster%%INSTANCE_NUM%%/db-pool%%POOL_NUM%% --topology ./state-cluster%%INSTANCE_NUM%%/topology-pool%%POOL_NUM%%.json --host-addr 127.0.0.1 --port %%NODE_PORT%% --socket-path ./state-cluster%%INSTANCE_NUM%%/pool%%POOL_NUM%%.socket --shelley-vrf-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/vrf.skey --shelley-kes-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/kes.skey --shelley-operational-certificate ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/op.cert "$@" diff --git a/cardano_node_tests/cluster_scripts/conway_fast/template-config.json b/cardano_node_tests/cluster_scripts/conway_fast/template-config.json new file mode 100644 index 000000000..63bd1cae3 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/template-config.json @@ -0,0 +1,42 @@ +{ + "ApplicationName": "cardano-sl", + "ApplicationVersion": 1, + "ByronGenesisFile": "byron/genesis.json", + "LastKnownBlockVersion-Alt": 0, + "LastKnownBlockVersion-Major": 9, + "LastKnownBlockVersion-Minor": 0, + "PBftSignatureThreshold": 1, + "Protocol": "Cardano", + "RequiresNetworkMagic": "RequiresMagic", + "ShelleyGenesisFile": "shelley/genesis.json", + "AlonzoGenesisFile": "shelley/genesis.alonzo.json", + "ConwayGenesisFile": "shelley/genesis.conway.json", + "TraceOptions": { + "": { + "backends": [ + "EKGBackend", + "PrometheusSimple %%PROMETHEUS_PORT%%", + "Stdout HumanFormatUncoloured" + ], + "detail": "DNormal", + "severity": "Info" + } + }, + "TraceOptionResourceFrequency": 5000, + "TurnOnLogMetrics": true, + "TurnOnLogging": true, + "EnableP2P": true, + "MaxConcurrencyBulkSync": 2, + "MaxConcurrencyDeadline": 4, + "TargetNumberOfRootPeers": 100, + "TargetNumberOfKnownPeers": 100, + "TargetNumberOfEstablishedPeers": 50, + "TargetNumberOfActivePeers": 20, + "TestShelleyHardForkAtEpoch": 0, + "TestAllegraHardForkAtEpoch": 0, + "TestMaryHardForkAtEpoch": 0, + "TestAlonzoHardForkAtEpoch": 0, + "TestBabbageHardForkAtEpoch": 0, + "TestConwayHardForkAtEpoch": 0, + "ExperimentalProtocolsEnabled": true +} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/testnet.json b/cardano_node_tests/cluster_scripts/conway_fast/testnet.json new file mode 100644 index 000000000..e1136462f --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/testnet.json @@ -0,0 +1,15 @@ +{ + "name": "conway_fast", + "description": "Local testnet that starts directly in Conway era.", + "control_env": { + "DBSYNC_SCHEMA_DIR": "will start and configure db-sync if the value is path to db-sync schema directory", + "SMASH": "if set, will start and configure smash", + "ENABLE_EXPERIMENTAL": "if set, experimental features will be enabled in the local cluster", + "UTXO_BACKEND": "'mem', 'disk', 'disklmdb' or `empty`, default is `empty` (mem without configuration) if unset", + "NO_CC": "if set, will not create committee", + "DRY_RUN": "if set, will not start the cluster", + "PROTOCOL_VERSION": "if set, will use the specified protocol version (e.g., 11 for latest Conway, etc.)", + "ENABLE_TX_GENERATOR": "if set, will configure and start tx-generator", + "USE_GENESIS_MODE": "if set, will switch to using GenesisMode and peer snapshot file" + } +} diff --git a/cardano_node_tests/utils/logfiles.py b/cardano_node_tests/utils/logfiles.py index 3a5a3b3d1..5583f2345 100644 --- a/cardano_node_tests/utils/logfiles.py +++ b/cardano_node_tests/utils/logfiles.py @@ -42,6 +42,7 @@ "ExceededTimeLimit", "Failed to start all required subscriptions", "TraceDidntAdoptBlock", + r"Forge\.Loop\.DidntAdoptBlock", "failedScripts", "closed when reading data, waiting on next header", "IOException writev: resource vanished", From ff09d1a28a8c74a76c00c17369b1003830cd9444 Mon Sep 17 00:00:00 2001 From: femi Date: Wed, 20 May 2026 17:42:36 +0100 Subject: [PATCH 2/4] fix(tests): update forged block log pattern for trace-dispatcher format TraceForgedBlock is no longer emitted in the old iohk-monitoring JSON format. The new trace-dispatcher log line is: [timestamp][host:Forge.Loop.ForgedBlock](Info,slot) Forged block in slot N Update the regex and slot-extraction pattern in test_pool_blocks accordingly. --- cardano_node_tests/tests/test_blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cardano_node_tests/tests/test_blocks.py b/cardano_node_tests/tests/test_blocks.py index f4be839a4..da6ba8038 100644 --- a/cardano_node_tests/tests/test_blocks.py +++ b/cardano_node_tests/tests/test_blocks.py @@ -110,7 +110,7 @@ def test_pool_blocks( # noqa: C901 def _check_logs() -> None: # Get info about forged blocks in queried epoch for the selected pool forged_lines = logfiles.find_msgs_in_logs( - regex='"TraceForgedBlock"', + regex="Forge\\.Loop\\.ForgedBlock", logfile=pool_log, seek_offset=seek_offset, timestamp=timestamp, @@ -122,7 +122,7 @@ def _check_logs() -> None: first_slot_this_ep = int(tip["slot"]) - int(tip["slotInEpoch"]) first_slot_queried_ep = first_slot_this_ep - (ep_num_after_queried * ep_length) last_slot_queried_ep = first_slot_queried_ep + ep_length - 1 - slots_pattern = re.compile(r'"slot",Number (\d+)\.0') + slots_pattern = re.compile(r"Forged block in slot (\d+)") slots_when_forged = { s for m in forged_lines From 703a75ddf750d9ee6ff9a34bac82f0d58607ae59 Mon Sep 17 00:00:00 2001 From: femi Date: Wed, 20 May 2026 20:19:16 +0100 Subject: [PATCH 3/4] fix(tracing): ignore RpcConfigUpdateError from trace-dispatcher startup --- cardano_node_tests/utils/logfiles.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cardano_node_tests/utils/logfiles.py b/cardano_node_tests/utils/logfiles.py index 5583f2345..2c7c1bc42 100644 --- a/cardano_node_tests/utils/logfiles.py +++ b/cardano_node_tests/utils/logfiles.py @@ -43,6 +43,7 @@ "Failed to start all required subscriptions", "TraceDidntAdoptBlock", r"Forge\.Loop\.DidntAdoptBlock", + r"Startup\.RpcConfigUpdateError", "failedScripts", "closed when reading data, waiting on next header", "IOException writev: resource vanished", From 4a1b2f88ca33c9edc9be6b2eba9c422cc0aa6c74 Mon Sep 17 00:00:00 2001 From: femi Date: Thu, 21 May 2026 11:45:54 +0100 Subject: [PATCH 4/4] revert(tracing): remove vendored conway_fast cluster scripts The temporary vendor is no longer needed now that cardonnay has the correct trace-dispatcher config. cardano-node-tests will use the scripts from the installed cardonnay package directly. --- .../conway_fast/byron-params.json | 23 - .../conway_fast/cardano-node-bft1 | 15 - .../conway_fast/dbsync-config.yaml | 116 ---- .../conway_fast/genesis.alonzo.spec.json | 546 ------------------ .../conway_fast/genesis.conway.spec.json | 292 ---------- .../conway_fast/genesis.dijkstra.spec.json | 6 - .../conway_fast/genesis.spec.json | 44 -- .../cluster_scripts/conway_fast/start-cluster | 4 - .../conway_fast/submit-api-config.json | 121 ---- .../conway_fast/template-cardano-node-pool | 18 - .../conway_fast/template-config.json | 42 -- .../cluster_scripts/conway_fast/testnet.json | 15 - 12 files changed, 1242 deletions(-) delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/byron-params.json delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/cardano-node-bft1 delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/dbsync-config.yaml delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/genesis.alonzo.spec.json delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/genesis.conway.spec.json delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/genesis.dijkstra.spec.json delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/genesis.spec.json delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/start-cluster delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/submit-api-config.json delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/template-cardano-node-pool delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/template-config.json delete mode 100644 cardano_node_tests/cluster_scripts/conway_fast/testnet.json diff --git a/cardano_node_tests/cluster_scripts/conway_fast/byron-params.json b/cardano_node_tests/cluster_scripts/conway_fast/byron-params.json deleted file mode 100644 index d424e4d50..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/byron-params.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "heavyDelThd": "300000000000", - "maxBlockSize": "2000000", - "maxTxSize": "4096", - "maxHeaderSize": "2000000", - "maxProposalSize": "700", - "mpcThd": "20000000000000", - "scriptVersion": 0, - "slotDuration": "2000", - "softforkRule": { - "initThd": "900000000000000", - "minThd": "600000000000000", - "thdDecrement": "50000000000000" - }, - "txFeePolicy": { - "multiplier": "43946000000", - "summand": "155381000000000" - }, - "unlockStakeEpoch": "18446744073709551615", - "updateImplicit": "10000", - "updateProposalThd": "100000000000000", - "updateVoteThd": "1000000000000" -} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/cardano-node-bft1 b/cardano_node_tests/cluster_scripts/conway_fast/cardano-node-bft1 deleted file mode 100644 index 9cf5ffab0..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/cardano-node-bft1 +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -echo "Starting cardano-node run with PID $$: cardano-node run" - echo "--config ./state-cluster%%INSTANCE_NUM%%/config-bft1.json" - echo "--database-path ./state-cluster%%INSTANCE_NUM%%/db-bft1" - echo "--topology ./state-cluster%%INSTANCE_NUM%%/topology-bft1.json" - echo "--host-addr 127.0.0.1" - echo "--port %%NODE_PORT_BASE%%" - echo "--socket-path ./state-cluster%%INSTANCE_NUM%%/bft1.socket $*" - -echo "..or, once again, in a single line:" -echo "cardano-node run --config ./state-cluster%%INSTANCE_NUM%%/config-bft1.json --database-path ./state-cluster%%INSTANCE_NUM%%/db-bft1 --topology ./state-cluster%%INSTANCE_NUM%%/topology-bft1.json --host-addr 127.0.0.1 --port %%NODE_PORT_BASE%% --socket-path ./state-cluster%%INSTANCE_NUM%%/bft1.socket $*" - - -exec cardano-node run --config ./state-cluster%%INSTANCE_NUM%%/config-bft1.json --database-path ./state-cluster%%INSTANCE_NUM%%/db-bft1 --topology ./state-cluster%%INSTANCE_NUM%%/topology-bft1.json --host-addr 127.0.0.1 --port %%NODE_PORT_BASE%% --socket-path ./state-cluster%%INSTANCE_NUM%%/bft1.socket "$@" diff --git a/cardano_node_tests/cluster_scripts/conway_fast/dbsync-config.yaml b/cardano_node_tests/cluster_scripts/conway_fast/dbsync-config.yaml deleted file mode 100644 index 71b4b7269..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/dbsync-config.yaml +++ /dev/null @@ -1,116 +0,0 @@ -# Explorer DB Node configuration - -NetworkName: localnet - -EnableLogMetrics: False -EnableLogging: True -EnableFutureGenesis: True - -# The default port is 8080 -# PrometheusPort: 8080 - -# The config file for the node we are connecting to. If this is not the correct -# config, it will likely lead to db-sync throwing up weird error messages from -# the consensus layer. -# The path to the node config file is relative to this config file. -NodeConfigFile: config-bft1.json - -# ------------------------------------------------------------------------------ -# Logging configuration follows. - -# global filter; messages must have at least this severity to pass: -minSeverity: Info - -# global file rotation settings: -rotation: - rpLogLimitBytes: 5000000 - rpKeepFilesNum: 10 - rpMaxAgeHours: 24 - -# these backends are initialized: -setupBackends: - - AggregationBK - - KatipBK - # - EditorBK - # - EKGViewBK - -# if not indicated otherwise, then messages are passed to these backends: -defaultBackends: - - KatipBK - -# if wanted, the GUI is listening on this port: -# hasGUI: 12787 - -# if wanted, the EKG interface is listening on this port: -# hasEKG: 12788 - -# here we set up outputs of logging in 'katip': -setupScribes: - - scKind: StdoutSK - scName: stdout - scFormat: ScText - scRotation: null - -# if not indicated otherwise, then log output is directed to this: -defaultScribes: - - - StdoutSK - - stdout - -# more options which can be passed as key-value pairs: -options: - cfokey: - value: "Release-1.0.0" - mapSubtrace: - benchmark: - contents: - - GhcRtsStats - - MonotonicClock - subtrace: ObservableTrace - '#ekgview': - contents: - - - tag: Contains - contents: 'cardano.epoch-validation.benchmark' - - - tag: Contains - contents: .monoclock.basic. - - - tag: Contains - contents: 'cardano.epoch-validation.benchmark' - - - tag: Contains - contents: diff.RTS.cpuNs.timed. - - - tag: StartsWith - contents: '#ekgview.#aggregation.cardano.epoch-validation.benchmark' - - - tag: Contains - contents: diff.RTS.gcNum.timed. - subtrace: FilterTrace - 'cardano.epoch-validation.utxo-stats': - # Change the `subtrace` value to `Neutral` in order to log - # `UTxO`-related messages during epoch validation. - subtrace: NoTrace - '#messagecounters.aggregation': - subtrace: NoTrace - '#messagecounters.ekgview': - subtrace: NoTrace - '#messagecounters.switchboard': - subtrace: NoTrace - '#messagecounters.katip': - subtrace: NoTrace - '#messagecounters.monitoring': - subtrace: NoTrace - 'cardano.#messagecounters.aggregation': - subtrace: NoTrace - 'cardano.#messagecounters.ekgview': - subtrace: NoTrace - 'cardano.#messagecounters.switchboard': - subtrace: NoTrace - 'cardano.#messagecounters.katip': - subtrace: NoTrace - 'cardano.#messagecounters.monitoring': - subtrace: NoTrace - mapBackends: - cardano.epoch-validation.benchmark: - - AggregationBK - '#aggregation.cardano.epoch-validation.benchmark': - - EKGViewBK - mapSeverity: - db-sync-node.Subscription: Error - db-sync-node.Mux: Error - db-sync-node: Info diff --git a/cardano_node_tests/cluster_scripts/conway_fast/genesis.alonzo.spec.json b/cardano_node_tests/cluster_scripts/conway_fast/genesis.alonzo.spec.json deleted file mode 100644 index a056c286e..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/genesis.alonzo.spec.json +++ /dev/null @@ -1,546 +0,0 @@ -{ - "collateralPercentage": 150, - "costModels": { - "PlutusV1": [ - 205665, - 812, - 1, - 1, - 1000, - 571, - 0, - 1, - 1000, - 24177, - 4, - 1, - 1000, - 32, - 117366, - 10475, - 4, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 100, - 100, - 23000, - 100, - 19537, - 32, - 175354, - 32, - 46417, - 4, - 221973, - 511, - 0, - 1, - 89141, - 32, - 497525, - 14068, - 4, - 2, - 196500, - 453240, - 220, - 0, - 1, - 1, - 1000, - 28662, - 4, - 2, - 245000, - 216773, - 62, - 1, - 1060367, - 12586, - 1, - 208512, - 421, - 1, - 187000, - 1000, - 52998, - 1, - 80436, - 32, - 43249, - 32, - 1000, - 32, - 80556, - 1, - 57667, - 4, - 1000, - 10, - 197145, - 156, - 1, - 197145, - 156, - 1, - 204924, - 473, - 1, - 208896, - 511, - 1, - 52467, - 32, - 64832, - 32, - 65493, - 32, - 22558, - 32, - 16563, - 32, - 76511, - 32, - 196500, - 453240, - 220, - 0, - 1, - 1, - 69522, - 11687, - 0, - 1, - 60091, - 32, - 196500, - 453240, - 220, - 0, - 1, - 1, - 196500, - 453240, - 220, - 0, - 1, - 1, - 806990, - 30482, - 4, - 1927926, - 82523, - 4, - 265318, - 0, - 4, - 0, - 85931, - 32, - 205665, - 812, - 1, - 1, - 41182, - 32, - 212342, - 32, - 31220, - 32, - 32696, - 32, - 43357, - 32, - 32247, - 32, - 38314, - 32, - 9462713, - 1021, - 10 - ], - "PlutusV2": [ - 205665, - 812, - 1, - 1, - 1000, - 571, - 0, - 1, - 1000, - 24177, - 4, - 1, - 1000, - 32, - 117366, - 10475, - 4, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 100, - 100, - 23000, - 100, - 19537, - 32, - 175354, - 32, - 46417, - 4, - 221973, - 511, - 0, - 1, - 89141, - 32, - 497525, - 14068, - 4, - 2, - 196500, - 453240, - 220, - 0, - 1, - 1, - 1000, - 28662, - 4, - 2, - 245000, - 216773, - 62, - 1, - 1060367, - 12586, - 1, - 208512, - 421, - 1, - 187000, - 1000, - 52998, - 1, - 80436, - 32, - 43249, - 32, - 1000, - 32, - 80556, - 1, - 57667, - 4, - 1000, - 10, - 197145, - 156, - 1, - 197145, - 156, - 1, - 204924, - 473, - 1, - 208896, - 511, - 1, - 52467, - 32, - 64832, - 32, - 65493, - 32, - 22558, - 32, - 16563, - 32, - 76511, - 32, - 196500, - 453240, - 220, - 0, - 1, - 1, - 69522, - 11687, - 0, - 1, - 60091, - 32, - 196500, - 453240, - 220, - 0, - 1, - 1, - 196500, - 453240, - 220, - 0, - 1, - 1, - 1159724, - 392670, - 0, - 2, - 806990, - 30482, - 4, - 1927926, - 82523, - 4, - 265318, - 0, - 4, - 0, - 85931, - 32, - 205665, - 812, - 1, - 1, - 41182, - 32, - 212342, - 32, - 31220, - 32, - 32696, - 32, - 43357, - 32, - 32247, - 32, - 38314, - 32, - 35892428, - 10, - 9462713, - 1021, - 10, - 38887044, - 32947, - 10 - ] - }, - "extraConfig": { - "costModels": { - "PlutusV2": [ - 205665, - 812, - 1, - 1, - 1000, - 571, - 0, - 1, - 1000, - 24177, - 4, - 1, - 1000, - 32, - 117366, - 10475, - 4, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 23000, - 100, - 100, - 100, - 23000, - 100, - 19537, - 32, - 175354, - 32, - 46417, - 4, - 221973, - 511, - 0, - 1, - 89141, - 32, - 497525, - 14068, - 4, - 2, - 196500, - 453240, - 220, - 0, - 1, - 1, - 1000, - 28662, - 4, - 2, - 245000, - 216773, - 62, - 1, - 1060367, - 12586, - 1, - 208512, - 421, - 1, - 187000, - 1000, - 52998, - 1, - 80436, - 32, - 43249, - 32, - 1000, - 32, - 80556, - 1, - 57667, - 4, - 1000, - 10, - 197145, - 156, - 1, - 197145, - 156, - 1, - 204924, - 473, - 1, - 208896, - 511, - 1, - 52467, - 32, - 64832, - 32, - 65493, - 32, - 22558, - 32, - 16563, - 32, - 76511, - 32, - 196500, - 453240, - 220, - 0, - 1, - 1, - 69522, - 11687, - 0, - 1, - 60091, - 32, - 196500, - 453240, - 220, - 0, - 1, - 1, - 196500, - 453240, - 220, - 0, - 1, - 1, - 1159724, - 392670, - 0, - 2, - 806990, - 30482, - 4, - 1927926, - 82523, - 4, - 265318, - 0, - 4, - 0, - 85931, - 32, - 205665, - 812, - 1, - 1, - 41182, - 32, - 212342, - 32, - 31220, - 32, - 32696, - 32, - 43357, - 32, - 32247, - 32, - 38314, - 32, - 35892428, - 10, - 9462713, - 1021, - 10, - 38887044, - 32947, - 10 - ] - } - }, - "executionPrices": { - "prMem": 0.0577, - "prSteps": 7.21e-05 - }, - "lovelacePerUTxOWord": 34482, - "maxBlockExUnits": { - "exUnitsMem": 62000000, - "exUnitsSteps": 40000000000 - }, - "maxCollateralInputs": 3, - "maxTxExUnits": { - "exUnitsMem": 14000000, - "exUnitsSteps": 10000000000 - }, - "maxValueSize": 5000 -} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/genesis.conway.spec.json b/cardano_node_tests/cluster_scripts/conway_fast/genesis.conway.spec.json deleted file mode 100644 index 17b09d995..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/genesis.conway.spec.json +++ /dev/null @@ -1,292 +0,0 @@ -{ - "poolVotingThresholds": { - "motionNoConfidence": 0.51, - "committeeNormal": 0.51, - "committeeNoConfidence": 0.51, - "hardForkInitiation": 0.51, - "ppSecurityGroup": 0.51 - }, - "dRepVotingThresholds": { - "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": 11000, - "govActionLifetime": 2, - "govActionDeposit": 100000000, - "dRepDeposit": 2000000, - "dRepActivity": 100, - "minFeeRefScriptCostPerByte": 0, - "plutusV3CostModel": [ - 100788, - 420, - 1, - 1, - 1000, - 173, - 0, - 1, - 1000, - 59957, - 4, - 1, - 11183, - 32, - 201305, - 8356, - 4, - 16000, - 100, - 16000, - 100, - 16000, - 100, - 16000, - 100, - 16000, - 100, - 16000, - 100, - 100, - 100, - 16000, - 100, - 94375, - 32, - 132994, - 32, - 61462, - 4, - 72010, - 178, - 0, - 1, - 22151, - 32, - 91189, - 769, - 4, - 2, - 85848, - 123203, - 7305, - -900, - 1716, - 549, - 57, - 85848, - 0, - 1, - 1, - 1000, - 42921, - 4, - 2, - 24548, - 29498, - 38, - 1, - 898148, - 27279, - 1, - 51775, - 558, - 1, - 39184, - 1000, - 60594, - 1, - 141895, - 32, - 83150, - 32, - 15299, - 32, - 76049, - 1, - 13169, - 4, - 22100, - 10, - 28999, - 74, - 1, - 28999, - 74, - 1, - 43285, - 552, - 1, - 44749, - 541, - 1, - 33852, - 32, - 68246, - 32, - 72362, - 32, - 7243, - 32, - 7391, - 32, - 11546, - 32, - 85848, - 123203, - 7305, - -900, - 1716, - 549, - 57, - 85848, - 0, - 1, - 90434, - 519, - 0, - 1, - 74433, - 32, - 85848, - 123203, - 7305, - -900, - 1716, - 549, - 57, - 85848, - 0, - 1, - 1, - 85848, - 123203, - 7305, - -900, - 1716, - 549, - 57, - 85848, - 0, - 1, - 955506, - 213312, - 0, - 2, - 270652, - 22588, - 4, - 1457325, - 64566, - 4, - 20467, - 1, - 4, - 0, - 141992, - 32, - 100788, - 420, - 1, - 1, - 81663, - 32, - 59498, - 32, - 20142, - 32, - 24588, - 32, - 20744, - 32, - 25933, - 32, - 24623, - 32, - 43053543, - 10, - 53384111, - 14333, - 10, - 43574283, - 26308, - 10, - 16000, - 100, - 16000, - 100, - 962335, - 18, - 2780678, - 6, - 442008, - 1, - 52538055, - 3756, - 18, - 267929, - 18, - 76433006, - 8868, - 18, - 52948122, - 18, - 1995836, - 36, - 3227919, - 12, - 901022, - 1, - 166917843, - 4307, - 36, - 284546, - 36, - 158221314, - 26549, - 36, - 74698472, - 36, - 333849714, - 1, - 254006273, - 72, - 2174038, - 72, - 2261318, - 64571, - 4, - 207616, - 8310, - 4, - 1293828, - 28716, - 63, - 0, - 1, - 1006041, - 43623, - 251, - 0, - 1 - ], - "constitution": { - "anchor": { - "url": "", - "dataHash": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - "committee": { - "members": { - }, - "threshold": 0.0 - } -} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/genesis.dijkstra.spec.json b/cardano_node_tests/cluster_scripts/conway_fast/genesis.dijkstra.spec.json deleted file mode 100644 index c33c67557..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/genesis.dijkstra.spec.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "maxRefScriptSizePerBlock": 1048576, - "maxRefScriptSizePerTx": 204800, - "refScriptCostStride": 25600, - "refScriptCostMultiplier": 1.2 -} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/genesis.spec.json b/cardano_node_tests/cluster_scripts/conway_fast/genesis.spec.json deleted file mode 100644 index c8a163d37..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/genesis.spec.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "activeSlotsCoeff": 0.1, - "protocolParams": { - "poolDeposit": 500000000, - "protocolVersion": { - "minor": 0, - "major": 9 - }, - "minUTxOValue": 1, - "decentralisationParam": 0.8, - "maxTxSize": 16384, - "minPoolCost": 0, - "minFeeA": 44, - "maxBlockBodySize": 65536, - "minFeeB": 155381, - "eMax": 18, - "extraEntropy": { - "tag": "NeutralNonce" - }, - "maxBlockHeaderSize": 1100, - "keyDeposit": 400000, - "nOpt": 500, - "rho": 0.0022, - "tau": 0.05, - "a0": 0.3 - }, - "protocolMagicId": 42, - "genDelegs": {}, - "updateQuorum": 1, - "networkId": "Testnet", - "initialFunds": {}, - "maxLovelaceSupply": 45000000000000000, - "networkMagic": 42, - "epochLength": 1000, - "staking": { - "pools": {}, - "stake": {} - }, - "systemStart": "2020-07-08T02:39:16.033076859Z", - "slotsPerKESPeriod": 129600, - "slotLength": 0.2, - "maxKESEvolutions": 64, - "securityParam": 10 -} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/start-cluster b/cardano_node_tests/cluster_scripts/conway_fast/start-cluster deleted file mode 100644 index 094bcc586..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/start-cluster +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -SCRIPT_DIR="$(readlink -m "${0%/*}")" -exec "${SCRIPT_DIR}/common-start-fast" "$@" diff --git a/cardano_node_tests/cluster_scripts/conway_fast/submit-api-config.json b/cardano_node_tests/cluster_scripts/conway_fast/submit-api-config.json deleted file mode 100644 index 9decf5f43..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/submit-api-config.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "EnableLogMetrics": false, - "EnableLogging": true, - "RequiresNetworkMagic": "RequiresMagic", - "defaultBackends": [ - "KatipBK" - ], - "defaultScribes": [ - [ - "StdoutSK", - "stdout" - ] - ], - "minSeverity": "Info", - "options": { - "cfokey": { - "value": "Release-1.0.0" - }, - "mapBackends": {}, - "mapSeverity": { - "db-sync-node": "Info", - "db-sync-node.Mux": "Error", - "db-sync-node.Subscription": "Error" - }, - "mapSubtrace": { - "#ekgview": { - "contents": [ - [ - { - "contents": "cardano.epoch-validation.benchmark", - "tag": "Contains" - }, - [ - { - "contents": ".monoclock.basic.", - "tag": "Contains" - } - ] - ], - [ - { - "contents": "cardano.epoch-validation.benchmark", - "tag": "Contains" - }, - [ - { - "contents": "diff.RTS.cpuNs.timed.", - "tag": "Contains" - } - ] - ], - [ - { - "contents": "#ekgview.#aggregation.cardano.epoch-validation.benchmark", - "tag": "StartsWith" - }, - [ - { - "contents": "diff.RTS.gcNum.timed.", - "tag": "Contains" - } - ] - ] - ], - "subtrace": "FilterTrace" - }, - "#messagecounters.aggregation": { - "subtrace": "NoTrace" - }, - "#messagecounters.ekgview": { - "subtrace": "NoTrace" - }, - "#messagecounters.katip": { - "subtrace": "NoTrace" - }, - "#messagecounters.monitoring": { - "subtrace": "NoTrace" - }, - "#messagecounters.switchboard": { - "subtrace": "NoTrace" - }, - "benchmark": { - "contents": [ - "GhcRtsStats", - "MonotonicClock" - ], - "subtrace": "ObservableTrace" - }, - "cardano.epoch-validation.utxo-stats": { - "subtrace": "NoTrace" - } - } - }, - "rotation": { - "rpKeepFilesNum": 10, - "rpLogLimitBytes": 5000000, - "rpMaxAgeHours": 24 - }, - "setupBackends": [ - "AggregationBK", - "KatipBK" - ], - "setupScribes": [ - { - "scFormat": "ScText", - "scKind": "StdoutSK", - "scName": "stdout", - "scRotation": null - } - ], - "TraceOptions": { - "": { - "backends" : [ - "EKGBackend", - "Stdout HumanFormatColoured" - ], - "detail": "DNormal", - "severity": "Info" - } - } -} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/template-cardano-node-pool b/cardano_node_tests/cluster_scripts/conway_fast/template-cardano-node-pool deleted file mode 100644 index b0c5c2cf9..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/template-cardano-node-pool +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -echo "Starting cardano-node run with PID $$: cardano-node run" - echo "--config ./state-cluster%%INSTANCE_NUM%%/config-pool%%POOL_NUM%%.json" - echo "--database-path ./state-cluster%%INSTANCE_NUM%%/db-pool%%POOL_NUM%%" - echo "--topology ./state-cluster%%INSTANCE_NUM%%/topology-pool%%POOL_NUM%%.json" - echo "--host-addr 127.0.0.1" - echo "--port %%NODE_PORT%%" - echo "--socket-path ./state-cluster%%INSTANCE_NUM%%/pool%%POOL_NUM%%.socket" - echo "--shelley-vrf-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/vrf.skey" - echo "--shelley-kes-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/kes.skey" - echo "--shelley-operational-certificate ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/op.cert $*" - -echo "..or, once again, in a single line:" -echo "cardano-node run --config ./state-cluster%%INSTANCE_NUM%%/config-pool%%POOL_NUM%%.json --database-path ./state-cluster%%INSTANCE_NUM%%/db-pool%%POOL_NUM%% --topology ./state-cluster%%INSTANCE_NUM%%/topology-pool%%POOL_NUM%%.json --host-addr 127.0.0.1 --port %%NODE_PORT%% --socket-path ./state-cluster%%INSTANCE_NUM%%/pool%%POOL_NUM%%.socket --shelley-vrf-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/vrf.skey --shelley-kes-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/kes.skey --shelley-operational-certificate ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/op.cert $*" - - -exec cardano-node run --config ./state-cluster%%INSTANCE_NUM%%/config-pool%%POOL_NUM%%.json --database-path ./state-cluster%%INSTANCE_NUM%%/db-pool%%POOL_NUM%% --topology ./state-cluster%%INSTANCE_NUM%%/topology-pool%%POOL_NUM%%.json --host-addr 127.0.0.1 --port %%NODE_PORT%% --socket-path ./state-cluster%%INSTANCE_NUM%%/pool%%POOL_NUM%%.socket --shelley-vrf-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/vrf.skey --shelley-kes-key ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/kes.skey --shelley-operational-certificate ./state-cluster%%INSTANCE_NUM%%/nodes/node-pool%%POOL_NUM%%/op.cert "$@" diff --git a/cardano_node_tests/cluster_scripts/conway_fast/template-config.json b/cardano_node_tests/cluster_scripts/conway_fast/template-config.json deleted file mode 100644 index 63bd1cae3..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/template-config.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "ApplicationName": "cardano-sl", - "ApplicationVersion": 1, - "ByronGenesisFile": "byron/genesis.json", - "LastKnownBlockVersion-Alt": 0, - "LastKnownBlockVersion-Major": 9, - "LastKnownBlockVersion-Minor": 0, - "PBftSignatureThreshold": 1, - "Protocol": "Cardano", - "RequiresNetworkMagic": "RequiresMagic", - "ShelleyGenesisFile": "shelley/genesis.json", - "AlonzoGenesisFile": "shelley/genesis.alonzo.json", - "ConwayGenesisFile": "shelley/genesis.conway.json", - "TraceOptions": { - "": { - "backends": [ - "EKGBackend", - "PrometheusSimple %%PROMETHEUS_PORT%%", - "Stdout HumanFormatUncoloured" - ], - "detail": "DNormal", - "severity": "Info" - } - }, - "TraceOptionResourceFrequency": 5000, - "TurnOnLogMetrics": true, - "TurnOnLogging": true, - "EnableP2P": true, - "MaxConcurrencyBulkSync": 2, - "MaxConcurrencyDeadline": 4, - "TargetNumberOfRootPeers": 100, - "TargetNumberOfKnownPeers": 100, - "TargetNumberOfEstablishedPeers": 50, - "TargetNumberOfActivePeers": 20, - "TestShelleyHardForkAtEpoch": 0, - "TestAllegraHardForkAtEpoch": 0, - "TestMaryHardForkAtEpoch": 0, - "TestAlonzoHardForkAtEpoch": 0, - "TestBabbageHardForkAtEpoch": 0, - "TestConwayHardForkAtEpoch": 0, - "ExperimentalProtocolsEnabled": true -} diff --git a/cardano_node_tests/cluster_scripts/conway_fast/testnet.json b/cardano_node_tests/cluster_scripts/conway_fast/testnet.json deleted file mode 100644 index e1136462f..000000000 --- a/cardano_node_tests/cluster_scripts/conway_fast/testnet.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "conway_fast", - "description": "Local testnet that starts directly in Conway era.", - "control_env": { - "DBSYNC_SCHEMA_DIR": "will start and configure db-sync if the value is path to db-sync schema directory", - "SMASH": "if set, will start and configure smash", - "ENABLE_EXPERIMENTAL": "if set, experimental features will be enabled in the local cluster", - "UTXO_BACKEND": "'mem', 'disk', 'disklmdb' or `empty`, default is `empty` (mem without configuration) if unset", - "NO_CC": "if set, will not create committee", - "DRY_RUN": "if set, will not start the cluster", - "PROTOCOL_VERSION": "if set, will use the specified protocol version (e.g., 11 for latest Conway, etc.)", - "ENABLE_TX_GENERATOR": "if set, will configure and start tx-generator", - "USE_GENESIS_MODE": "if set, will switch to using GenesisMode and peer snapshot file" - } -}