Skip to content

Commit e67c830

Browse files
authored
Merge pull request #1788 from input-output-hk/jpraynaud/support-cardano-node-8.12.1
Support Cardano node `8.12.2`
2 parents 36f9f4c + bd2604a commit e67c830

File tree

22 files changed

+354
-59
lines changed

22 files changed

+354
-59
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ jobs:
281281
matrix:
282282
mode: [ "std" ]
283283
era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras) }}
284-
cardano_node_version: [ "8.7.3", "8.9.0", "8.11.0-pre" ]
285-
hard_fork_latest_era_at_epoch: [ 0,10,100 ]
284+
cardano_node_version: [ "8.9.4", "8.12.2", "8.12.0-pre" ]
285+
hard_fork_latest_era_at_epoch: [ 0 ]
286286
run_id: [ "#1" ]
287287
extra_args: [ "" ]
288288

@@ -297,10 +297,24 @@ jobs:
297297
# Include a test for the P2P mode
298298
- mode: "p2p"
299299
era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras)[0] }}
300-
cardano_node_version: "8.7.3"
300+
cardano_node_version: "8.9.4"
301301
hard_fork_latest_era_at_epoch: 100
302302
run_id: "#1"
303303
extra_args: "--use-p2p-network"
304+
# Include tests for hard fork transitions
305+
- mode: "std"
306+
era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras)[0] }}
307+
cardano_node_version: "8.9.4"
308+
hard_fork_latest_era_at_epoch: 10
309+
run_id: "#1"
310+
extra_args: ""
311+
# Include tests for hard fork transitions
312+
- mode: "std"
313+
era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras)[0] }}
314+
cardano_node_version: "8.9.4"
315+
hard_fork_latest_era_at_epoch: 100
316+
run_id: "#1"
317+
extra_args: ""
304318
steps:
305319
- name: Checkout sources
306320
uses: actions/checkout@v4

.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.9.0/cardano-node-8.9.0-linux.tar.gz
28+
default: https://github.com/IntersectMBO/cardano-node/releases/download/8.12.2/cardano-node-8.12.2-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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ 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.
23+
2224
- **UNSTABLE** Cardano transactions certification:
2325
- Optimize the performances of the computation of the proof with a Merkle map.
2426
- Handle rollback events from the Cardano chain by removing stale data.

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ You will see more information about the snapshot:
434434
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
435435
| Size | 2323485648 |
436436
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
437-
| Cardano node version | 8.9.0 |
437+
| Cardano node version | 8.12.2 |
438438
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
439439
| Location | https://storage.googleapis.com/cdn.aggregator.testing-preview.api.mithril.network/preview-e539-i10787.db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667.tar.zst |
440440
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -463,19 +463,19 @@ You will see that the selected snapshot archive has been downloaded locally, unp
463463
5/5 - Verifying the cardano db signature…
464464
Cardano db 'db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667' has been unpacked and successfully checked against Mithril multi-signature contained in the certificate.
465465
466-
Files in the directory '/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db' can be used to run a Cardano node with version >= 8.9.0.
466+
Files in the directory '/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db' can be used to run a Cardano node with version >= 8.12.2.
467467
468468
If you are using Cardano Docker image, you can restore a Cardano Node with:
469469
470-
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.9.0
470+
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
471471
```
472472
473473
### Step 5: Launch a Cardano node from the restored Cardano DB snapshot
474474
475475
Launch an empty Cardano node and make it live in minutes!
476476
477477
```bash
478-
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.9.0
478+
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
479479
```
480480
481481
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.9.0 |
489+
| Cardano node version | 8.12.2 |
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.9.0.
517+
Files in the directory '/home/mithril/data/testnet/db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667/db' can be used to run a Cardano node with version >= 8.12.2.
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.9.0
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
522522
```

mithril-aggregator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-aggregator"
3-
version = "0.5.33"
3+
version = "0.5.34"
44
description = "A Mithril Aggregator server"
55
authors = { workspace = true }
66
edition = { workspace = true }

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.9.0
38+
ARG CARDANO_NODE_VERSION=8.12.2
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.9.0
17+
ARG CARDANO_NODE_VERSION=8.12.2
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 \

mithril-infra/assets/infra.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.19
1+
0.2.20

0 commit comments

Comments
 (0)