Skip to content

Commit 380a4bf

Browse files
authored
Merge pull request #1809 from input-output-hk/1787-support-cardano-node-9.0.0
Support Cardano node `9.0.0`
2 parents c9fab14 + 08c90de commit 380a4bf

File tree

31 files changed

+16348
-18
lines changed

31 files changed

+16348
-18
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ jobs:
289289
matrix:
290290
mode: ["std"]
291291
era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras) }}
292-
cardano_node_version: ["8.9.4", "8.12.2", "8.11.0-pre", "8.12.0-pre"]
292+
cardano_node_version:
293+
["8.9.4", "8.12.2", "9.0.0", "8.11.0-pre", "8.12.0-pre"]
293294
hard_fork_latest_era_at_epoch: [0]
294295
run_id: ["#1"]
295296
extra_args: [""]

.github/workflows/test-docker-distribution.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
description: The url of the archive of the Cardano binaries
2626
required: true
2727
type: string
28-
default: https://github.com/IntersectMBO/cardano-node/releases/download/8.12.2/cardano-node-8.12.2-linux.tar.gz
28+
default: https://github.com/IntersectMBO/cardano-node/releases/download/9.0.0/cardano-node-9.0.0-linux.tar.gz
2929
dry_run:
3030
description: Dry run will not push the Docker images to the registry
3131
required: true

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ As a minor extension, we have adopted a slightly different versioning convention
1919

2020
- Add a regularly run upkeep task to the `mithril-aggregator` and `mithril-signer` to clean up stale data and optimize their databases.
2121

22-
- Support for `Cardano node` `8.12.2` in the signer and the aggregator.
22+
- Support for `Cardano node` `9.0.0` in the signer and the aggregator.
2323

2424
- Refactor the Cardano node configuration in the infrastructure.
2525

docs/website/root/manual/getting-started/bootstrap-cardano-node.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ You will see more information about the snapshot:
436436
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
437437
| Size | 2323485648 |
438438
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
439-
| Cardano node version | 8.12.2 |
439+
| Cardano node version | 9.0.0 |
440440
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
441441
| Location | https://storage.googleapis.com/cdn.aggregator.testing-preview.api.mithril.network/preview-e539-i10787.db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667.tar.zst |
442442
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -464,19 +464,19 @@ You will see that the selected snapshot archive has been downloaded locally, unp
464464
5/5 - Verifying the cardano db signature…
465465
Cardano db 'db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667' has been unpacked and successfully checked against Mithril multi-signature contained in the certificate.
466466
467-
Files in the directory '/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db' can be used to run a Cardano node with version >= 8.12.2.
467+
Files in the directory '/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db' can be used to run a Cardano node with version >= 9.0.0.
468468
469469
If you are using Cardano Docker image, you can restore a Cardano Node with:
470470
471-
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db",target=/data/db/ -e NETWORK=preview ghcr.io/intersectmbo/cardano-node:8.12.2
471+
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db",target=/data/db/ -e NETWORK=preview ghcr.io/intersectmbo/cardano-node:9.0.0
472472
```
473473
474474
### Step 5: Launch a Cardano node from the restored Cardano DB snapshot
475475
476476
Launch an empty Cardano node and make it live in minutes!
477477
478478
```bash
479-
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="$(pwd)/data/testnet/$SNAPSHOT_DIGEST/db",target=/data/db/ -e NETWORK=$CARDANO_NETWORK ghcr.io/intersectmbo/cardano-node:8.12.2
479+
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="$(pwd)/data/testnet/$SNAPSHOT_DIGEST/db",target=/data/db/ -e NETWORK=$CARDANO_NETWORK ghcr.io/intersectmbo/cardano-node:9.0.0
480480
```
481481
482482
You will see the Cardano node start by validating the files ingested from the snapshot archive. Then, it will synchronize with the other network nodes and start adding blocks:

docs/website/root/manual/getting-started/run-mithril-devnet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ You will see more information about the snapshot:
486486
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
487487
| Size | 2323485648 |
488488
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
489-
| Cardano node version | 8.12.2 |
489+
| Cardano node version | 9.0.0 |
490490
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
491491
| Location | https://storage.googleapis.com/cdn.aggregator.testing-preview.api.mithril.network/preview-e539-i10787.db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667.tar.zst |
492492
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -514,9 +514,9 @@ You will see that the certificate chain is validated to ensure the issued certif
514514
5/5 - Verifying the cardano db signature…
515515
Cardano db 'db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667' has been unpacked and successfully checked against Mithril multi-signature contained in the certificate.
516516

517-
Files in the directory '/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db' can be used to run a Cardano node with version >= 8.12.2.
517+
Files in the directory '/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db' can be used to run a Cardano node with version >= 9.0.0.
518518

519519
If you are using Cardano Docker image, you can restore a Cardano Node with:
520520

521-
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db",target=/data/db/ -e NETWORK=preview ghcr.io/intersectmbo/cardano-node:8.12.2
521+
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db",target=/data/db/ -e NETWORK=preview ghcr.io/intersectmbo/cardano-node:9.0.0
522522
```

mithril-aggregator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN /app/target/release/mithril-aggregator --version
3535
FROM debian:11-slim
3636

3737
# Args
38-
ARG CARDANO_NODE_VERSION=8.12.2
38+
ARG CARDANO_NODE_VERSION=9.0.0
3939
ARG CARDANO_BIN_URL=https://github.com/input-output-hk/cardano-node/releases/download/$CARDANO_NODE_VERSION/cardano-node-$CARDANO_NODE_VERSION-linux.tar.gz
4040
ARG EMBED-CARDANO-CLI=0
4141

mithril-aggregator/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN mkdir -p /app/bin
1414
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && apt-get clean && rm -rf /var/lib/apt/lists/*
1515

1616
# Install cardano-cli
17-
ARG CARDANO_NODE_VERSION=8.12.2
17+
ARG CARDANO_NODE_VERSION=9.0.0
1818
ARG CARDANO_BIN_URL=https://github.com/input-output-hk/cardano-node/releases/download/$CARDANO_NODE_VERSION/cardano-node-$CARDANO_NODE_VERSION-linux.tar.gz
1919
ARG EMBED-CARDANO-CLI=0
2020
RUN if [ "$EMBED-CARDANO-CLI" = 1 ] ; then \
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
{
2+
"lovelacePerUTxOWord": 34482,
3+
"executionPrices": {
4+
"prSteps":
5+
{
6+
"numerator" : 721,
7+
"denominator" : 10000000
8+
},
9+
"prMem":
10+
{
11+
"numerator" : 577,
12+
"denominator" : 10000
13+
}
14+
},
15+
"maxTxExUnits": {
16+
"exUnitsMem": 10000000,
17+
"exUnitsSteps": 10000000000
18+
},
19+
"maxBlockExUnits": {
20+
"exUnitsMem": 50000000,
21+
"exUnitsSteps": 40000000000
22+
},
23+
"maxValueSize": 5000,
24+
"collateralPercentage": 150,
25+
"maxCollateralInputs": 3,
26+
"costModels": {
27+
"PlutusV1": {
28+
"sha2_256-memory-arguments": 4,
29+
"equalsString-cpu-arguments-constant": 1000,
30+
"cekDelayCost-exBudgetMemory": 100,
31+
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
32+
"divideInteger-memory-arguments-minimum": 1,
33+
"appendByteString-cpu-arguments-slope": 621,
34+
"blake2b-cpu-arguments-slope": 29175,
35+
"iData-cpu-arguments": 150000,
36+
"encodeUtf8-cpu-arguments-slope": 1000,
37+
"unBData-cpu-arguments": 150000,
38+
"multiplyInteger-cpu-arguments-intercept": 61516,
39+
"cekConstCost-exBudgetMemory": 100,
40+
"nullList-cpu-arguments": 150000,
41+
"equalsString-cpu-arguments-intercept": 150000,
42+
"trace-cpu-arguments": 150000,
43+
"mkNilData-memory-arguments": 32,
44+
"lengthOfByteString-cpu-arguments": 150000,
45+
"cekBuiltinCost-exBudgetCPU": 29773,
46+
"bData-cpu-arguments": 150000,
47+
"subtractInteger-cpu-arguments-slope": 0,
48+
"unIData-cpu-arguments": 150000,
49+
"consByteString-memory-arguments-intercept": 0,
50+
"divideInteger-memory-arguments-slope": 1,
51+
"divideInteger-cpu-arguments-model-arguments-slope": 118,
52+
"listData-cpu-arguments": 150000,
53+
"headList-cpu-arguments": 150000,
54+
"chooseData-memory-arguments": 32,
55+
"equalsInteger-cpu-arguments-intercept": 136542,
56+
"sha3_256-cpu-arguments-slope": 82363,
57+
"sliceByteString-cpu-arguments-slope": 5000,
58+
"unMapData-cpu-arguments": 150000,
59+
"lessThanInteger-cpu-arguments-intercept": 179690,
60+
"mkCons-cpu-arguments": 150000,
61+
"appendString-memory-arguments-intercept": 0,
62+
"modInteger-cpu-arguments-model-arguments-slope": 118,
63+
"ifThenElse-cpu-arguments": 1,
64+
"mkNilPairData-cpu-arguments": 150000,
65+
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
66+
"addInteger-memory-arguments-slope": 1,
67+
"chooseList-memory-arguments": 32,
68+
"constrData-memory-arguments": 32,
69+
"decodeUtf8-cpu-arguments-intercept": 150000,
70+
"equalsData-memory-arguments": 1,
71+
"subtractInteger-memory-arguments-slope": 1,
72+
"appendByteString-memory-arguments-intercept": 0,
73+
"lengthOfByteString-memory-arguments": 4,
74+
"headList-memory-arguments": 32,
75+
"listData-memory-arguments": 32,
76+
"consByteString-cpu-arguments-intercept": 150000,
77+
"unIData-memory-arguments": 32,
78+
"remainderInteger-memory-arguments-minimum": 1,
79+
"bData-memory-arguments": 32,
80+
"lessThanByteString-cpu-arguments-slope": 248,
81+
"encodeUtf8-memory-arguments-intercept": 0,
82+
"cekStartupCost-exBudgetCPU": 100,
83+
"multiplyInteger-memory-arguments-intercept": 0,
84+
"unListData-memory-arguments": 32,
85+
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
86+
"cekVarCost-exBudgetCPU": 29773,
87+
"remainderInteger-memory-arguments-slope": 1,
88+
"cekForceCost-exBudgetCPU": 29773,
89+
"sha2_256-cpu-arguments-slope": 29175,
90+
"equalsInteger-memory-arguments": 1,
91+
"indexByteString-memory-arguments": 1,
92+
"addInteger-memory-arguments-intercept": 1,
93+
"chooseUnit-cpu-arguments": 150000,
94+
"sndPair-cpu-arguments": 150000,
95+
"cekLamCost-exBudgetCPU": 29773,
96+
"fstPair-cpu-arguments": 150000,
97+
"quotientInteger-memory-arguments-minimum": 1,
98+
"decodeUtf8-cpu-arguments-slope": 1000,
99+
"lessThanInteger-memory-arguments": 1,
100+
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
101+
"fstPair-memory-arguments": 32,
102+
"modInteger-memory-arguments-intercept": 0,
103+
"unConstrData-cpu-arguments": 150000,
104+
"lessThanEqualsInteger-memory-arguments": 1,
105+
"chooseUnit-memory-arguments": 32,
106+
"sndPair-memory-arguments": 32,
107+
"addInteger-cpu-arguments-intercept": 197209,
108+
"decodeUtf8-memory-arguments-slope": 8,
109+
"equalsData-cpu-arguments-intercept": 150000,
110+
"mapData-cpu-arguments": 150000,
111+
"mkPairData-cpu-arguments": 150000,
112+
"quotientInteger-cpu-arguments-constant": 148000,
113+
"consByteString-memory-arguments-slope": 1,
114+
"cekVarCost-exBudgetMemory": 100,
115+
"indexByteString-cpu-arguments": 150000,
116+
"unListData-cpu-arguments": 150000,
117+
"equalsInteger-cpu-arguments-slope": 1326,
118+
"cekStartupCost-exBudgetMemory": 100,
119+
"subtractInteger-cpu-arguments-intercept": 197209,
120+
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
121+
"divideInteger-memory-arguments-intercept": 0,
122+
"cekForceCost-exBudgetMemory": 100,
123+
"blake2b-cpu-arguments-intercept": 2477736,
124+
"remainderInteger-cpu-arguments-constant": 148000,
125+
"tailList-cpu-arguments": 150000,
126+
"encodeUtf8-cpu-arguments-intercept": 150000,
127+
"equalsString-cpu-arguments-slope": 1000,
128+
"lessThanByteString-memory-arguments": 1,
129+
"multiplyInteger-cpu-arguments-slope": 11218,
130+
"appendByteString-cpu-arguments-intercept": 396231,
131+
"lessThanEqualsByteString-cpu-arguments-slope": 248,
132+
"modInteger-memory-arguments-slope": 1,
133+
"addInteger-cpu-arguments-slope": 0,
134+
"equalsData-cpu-arguments-slope": 10000,
135+
"decodeUtf8-memory-arguments-intercept": 0,
136+
"chooseList-cpu-arguments": 150000,
137+
"constrData-cpu-arguments": 150000,
138+
"equalsByteString-memory-arguments": 1,
139+
"cekApplyCost-exBudgetCPU": 29773,
140+
"quotientInteger-memory-arguments-slope": 1,
141+
"verifySignature-cpu-arguments-intercept": 3345831,
142+
"unMapData-memory-arguments": 32,
143+
"mkCons-memory-arguments": 32,
144+
"sliceByteString-memory-arguments-slope": 1,
145+
"sha3_256-memory-arguments": 4,
146+
"ifThenElse-memory-arguments": 1,
147+
"mkNilPairData-memory-arguments": 32,
148+
"equalsByteString-cpu-arguments-slope": 247,
149+
"appendString-cpu-arguments-intercept": 150000,
150+
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
151+
"cekApplyCost-exBudgetMemory": 100,
152+
"equalsString-memory-arguments": 1,
153+
"multiplyInteger-memory-arguments-slope": 1,
154+
"cekBuiltinCost-exBudgetMemory": 100,
155+
"remainderInteger-memory-arguments-intercept": 0,
156+
"sha2_256-cpu-arguments-intercept": 2477736,
157+
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
158+
"lessThanEqualsByteString-memory-arguments": 1,
159+
"tailList-memory-arguments": 32,
160+
"mkNilData-cpu-arguments": 150000,
161+
"chooseData-cpu-arguments": 150000,
162+
"unBData-memory-arguments": 32,
163+
"blake2b-memory-arguments": 4,
164+
"iData-memory-arguments": 32,
165+
"nullList-memory-arguments": 32,
166+
"cekDelayCost-exBudgetCPU": 29773,
167+
"subtractInteger-memory-arguments-intercept": 1,
168+
"lessThanByteString-cpu-arguments-intercept": 103599,
169+
"consByteString-cpu-arguments-slope": 1000,
170+
"appendByteString-memory-arguments-slope": 1,
171+
"trace-memory-arguments": 32,
172+
"divideInteger-cpu-arguments-constant": 148000,
173+
"cekConstCost-exBudgetCPU": 29773,
174+
"encodeUtf8-memory-arguments-slope": 8,
175+
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
176+
"mapData-memory-arguments": 32,
177+
"appendString-cpu-arguments-slope": 1000,
178+
"modInteger-cpu-arguments-constant": 148000,
179+
"verifySignature-cpu-arguments-slope": 1,
180+
"unConstrData-memory-arguments": 32,
181+
"quotientInteger-memory-arguments-intercept": 0,
182+
"equalsByteString-cpu-arguments-constant": 150000,
183+
"sliceByteString-memory-arguments-intercept": 0,
184+
"mkPairData-memory-arguments": 32,
185+
"equalsByteString-cpu-arguments-intercept": 112536,
186+
"appendString-memory-arguments-slope": 1,
187+
"lessThanInteger-cpu-arguments-slope": 497,
188+
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
189+
"modInteger-memory-arguments-minimum": 1,
190+
"sha3_256-cpu-arguments-intercept": 0,
191+
"verifySignature-memory-arguments": 1,
192+
"cekLamCost-exBudgetMemory": 100,
193+
"sliceByteString-cpu-arguments-intercept": 150000
194+
}
195+
}
196+
}

0 commit comments

Comments
 (0)