Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Upgrade to alonzo-purple-1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tdiesler committed Aug 6, 2021
1 parent bd85ed9 commit c229693
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 9 deletions.
3 changes: 2 additions & 1 deletion build-common.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

CARDANO_VER="1.28.0"
# Also change HaskellNix in nix/sources.json
CARDANO_VER="alonzo-purple-1.0.1"
CARDANO_REV="-dev"

# https://mmonit.com/monit/#download
Expand Down
124 changes: 124 additions & 0 deletions nix/docker/node/context/config/alonzo-purple-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"AlonzoGenesisFile": "alonzo-purple-alonzo-genesis.json",
"AlonzoGenesisHash": "44d65c89cce5f717e839a86fed28af924252ff46eca5aaf15b47ec0dd6a59578",
"ApplicationName": "cardano-sl",
"ApplicationVersion": 0,
"ByronGenesisFile": "alonzo-purple-byron-genesis.json",
"ByronGenesisHash": "6d58e8c626cb355ac2a4b040e1adb8266753a69f63593274e4558d6bd0c41eac",
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 5,
"LastKnownBlockVersion-Minor": 1,
"MaxKnownMajorProtocolVersion": 5,
"PBftSignatureThreshold": 1.1,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
"ShelleyGenesisFile": "alonzo-purple-shelley-genesis.json",
"ShelleyGenesisHash": "b143c75727f4b2fb372db713e719f9b958bb428e305a668bda6190443db4c191",
"TestAllegraHardForkAtEpoch": 2,
"TestAlonzoHardForkAtEpoch": 4,
"TestEnableDevelopmentHardForkEras": true,
"TestEnableDevelopmentNetworkProtocols": true,
"TestMaryHardForkAtEpoch": 3,
"TestShelleyHardForkAtEpoch": 1,
"TraceBlockFetchClient": false,
"TraceBlockFetchDecisions": false,
"TraceBlockFetchProtocol": false,
"TraceBlockFetchProtocolSerialised": false,
"TraceBlockFetchServer": false,
"TraceChainDb": true,
"TraceChainSyncBlockServer": false,
"TraceChainSyncClient": false,
"TraceChainSyncHeaderServer": false,
"TraceChainSyncProtocol": false,
"TraceConnectionManager": true,
"TraceDNSResolver": true,
"TraceDNSSubscription": true,
"TraceDiffusionInitialization": true,
"TraceErrorPolicy": true,
"TraceForge": true,
"TraceHandshake": false,
"TraceInboundGovernor": true,
"TraceIpSubscription": true,
"TraceLedgerPeers": true,
"TraceLocalChainSyncProtocol": false,
"TraceLocalErrorPolicy": true,
"TraceLocalHandshake": false,
"TraceLocalRootPeers": true,
"TraceLocalTxSubmissionProtocol": false,
"TraceLocalTxSubmissionServer": false,
"TraceMempool": true,
"TraceMux": false,
"TracePeerSelection": true,
"TracePeerSelectionActions": true,
"TracePublicRootPeers": true,
"TraceServer": true,
"TraceTxInbound": false,
"TraceTxOutbound": false,
"TraceTxSubmissionProtocol": false,
"TracingVerbosity": "NormalVerbosity",
"TurnOnLogMetrics": true,
"TurnOnLogging": true,
"defaultBackends": [
"KatipBK"
],
"defaultScribes": [
[
"StdoutSK",
"stdout"
],
[
"FileSK",
"/opt/cardano/logs/debug.log"
]
],
"hasEKG": [
"0.0.0.0",
12788
],
"hasPrometheus": [
"0.0.0.0",
12798
],
"minSeverity": "Debug",
"options": {
"mapBackends": {
"cardano.node.metrics": [
"EKGViewBK"
],
"cardano.node.resources": [
"EKGViewBK"
]
},
"mapSubtrace": {
"cardano.node.metrics": {
"subtrace": "Neutral"
}
}
},
"rotation": {
"rpKeepFilesNum": 10,
"rpLogLimitBytes": 5000000,
"rpMaxAgeHours": 24
},
"setupBackends": [
"KatipBK"
],
"setupScribes": [
{
"scFormat": "ScText",
"scKind": "StdoutSK",
"scName": "stdout",
"scRotation": null
},
{
"scFormat": "ScText",
"scKind": "FileSK",
"scName": "/opt/cardano/logs/debug.log",
"scRotation": {
"rpLogLimitBytes": 50000000,
"rpKeepFilesNum": 14,
"rpMaxAgeHours": 24
}
}
]
}
2 changes: 1 addition & 1 deletion nix/docker/node/context/config/mainnet-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"AlonzoGenesisFile": "mainnet-alonzo-genesis.json",
"AlonzoGenesisHash": "06cc024b823b6d20f5dde2faf8de2d895f47983ab584db38ea62111b61038e35",
"AlonzoGenesisHash": "44d65c89cce5f717e839a86fed28af924252ff46eca5aaf15b47ec0dd6a59578",
"ApplicationName": "cardano-sl",
"ApplicationVersion": 1,
"ByronGenesisFile": "mainnet-byron-genesis.json",
Expand Down
2 changes: 1 addition & 1 deletion nix/docker/node/context/config/testnet-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"AlonzoGenesisFile": "testnet-alonzo-genesis.json",
"AlonzoGenesisHash": "06cc024b823b6d20f5dde2faf8de2d895f47983ab584db38ea62111b61038e35",
"AlonzoGenesisHash": "44d65c89cce5f717e839a86fed28af924252ff46eca5aaf15b47ec0dd6a59578",
"ApplicationName": "cardano-sl",
"ApplicationVersion": 0,
"ByronGenesisFile": "testnet-byron-genesis.json",
Expand Down
18 changes: 16 additions & 2 deletions nix/docker/node/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
cabalVersion,
ghcVersion,

# https://hydra.iohk.io/build/6782523/download/1/index.html
hydraBuild ? "6782523",
# https://hydra.iohk.io/build/7189190/download/1/index.html
hydraBuild ? "7189190",

baseImage ? import ../baseImage { inherit debianVersion; },
cardano ? import ../../cardano { inherit cardanoVersion cardanoRev cabalVersion ghcVersion; },
Expand All @@ -36,6 +36,7 @@ let

# curl -o "./nix/docker/node/context/config/mainnet-config.json" "https://hydra.iohk.io/build/${hydraBuild}/download/1/mainnet-config.json"
# curl -o "./nix/docker/node/context/config/testnet-config.json" "https://hydra.iohk.io/build/${hydraBuild}/download/1/testnet-config.json"
# curl -o "./nix/docker/node/context/config/alonzo-purple-config.json" "https://hydra.iohk.io/build/${hydraBuild}/download/1/alonzo-purple-config.json"

# The mainet configs for the cardano-node
mainnet-config = ./context/config/mainnet-config.json;
Expand All @@ -51,6 +52,13 @@ let
testnet-shelley-genesis = builtins.fetchurl "https://hydra.iohk.io/build/${hydraBuild}/download/1/testnet-shelley-genesis.json";
testnet-alonzo-genesis = builtins.fetchurl "https://hydra.iohk.io/build/${hydraBuild}/download/1/testnet-alonzo-genesis.json";

# The alonzo-purple configs for the cardano-node
alonzo-purple-config = ./context/config/alonzo-purple-config.json;
alonzo-purple-topology = builtins.fetchurl "https://hydra.iohk.io/build/${hydraBuild}/download/1/alonzo-purple-topology.json";
alonzo-purple-byron-genesis = builtins.fetchurl "https://hydra.iohk.io/build/${hydraBuild}/download/1/alonzo-purple-byron-genesis.json";
alonzo-purple-shelley-genesis = builtins.fetchurl "https://hydra.iohk.io/build/${hydraBuild}/download/1/alonzo-purple-shelley-genesis.json";
alonzo-purple-alonzo-genesis = builtins.fetchurl "https://hydra.iohk.io/build/${hydraBuild}/download/1/alonzo-purple-alonzo-genesis.json";

# Custom mainnet-config.json

# The Docker context with static content
Expand Down Expand Up @@ -124,6 +132,12 @@ in
cp ${testnet-shelley-genesis} opt/cardano/config/testnet-shelley-genesis.json
cp ${testnet-alonzo-genesis} opt/cardano/config/testnet-alonzo-genesis.json
cp ${alonzo-purple-config} opt/cardano/config/alonzo-purple-config.json
cp ${alonzo-purple-topology} opt/cardano/config/alonzo-purple-topology.json
cp ${alonzo-purple-byron-genesis} opt/cardano/config/alonzo-purple-byron-genesis.json
cp ${alonzo-purple-shelley-genesis} opt/cardano/config/alonzo-purple-shelley-genesis.json
cp ${alonzo-purple-alonzo-genesis} opt/cardano/config/alonzo-purple-alonzo-genesis.json
# gLiveView scripts
cp -r ${gLiveView}/cnode-helper-scripts cnode-helper-scripts
Expand Down
8 changes: 4 additions & 4 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"homepage": "https://input-output-hk.github.io/haskell.nix",
"owner": "input-output-hk",
"repo": "haskell.nix",
"_see": "https://github.com/input-output-hk/cardano-node/blob/1.28.0/flake.lock#L26",
"rev": "f9d261d6d90d4aebd97f7ae60c951fc9e1d98493",
"sha256": "1rgws66b7q3klarvg37sxdpr4ijzxxsscax6ara3b80ji4pflcz1",
"_see": "https://github.com/input-output-hk/cardano-node/blob/alonzo-purple-1.0.1/flake.lock#L26",
"rev": "a28099f2f64bad29db409787d84a2ef7ad840351",
"sha256": "F2K6CDXDV02t9fILgCWIornXdtqKNwWuL/EykjxDu3g=",
"type": "tarball",
"url": "https://github.com/input-output-hk/haskell.nix/archive/f9d261d6d90d4aebd97f7ae60c951fc9e1d98493.tar.gz",
"url": "https://github.com/input-output-hk/haskell.nix/archive/a28099f2f64bad29db409787d84a2ef7ad840351.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}

0 comments on commit c229693

Please sign in to comment.