Skip to content

Commit 4d97ac5

Browse files
committed
feat: upgrade Cardano default from '10.7.1' to '11.0.1'
1 parent e5c0110 commit 4d97ac5

21 files changed

Lines changed: 71 additions & 71 deletions

File tree

.github/workflows/backward-compatibility.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
description: "Cardano node version used in e2e"
1313
required: true
1414
type: string
15-
default: "10.7.1"
15+
default: "11.0.1"
1616
signed-entity-types:
1717
description: "Signed entity types parameters (discriminants names in an ordered comma separated list)"
1818
required: true
@@ -35,7 +35,7 @@ on:
3535
default: 3
3636
cardano-node-version:
3737
type: string
38-
default: "10.7.1"
38+
default: "11.0.1"
3939
signed-entity-types:
4040
type: string
4141
default: "CardanoTransactions,CardanoStakeDistribution,CardanoDatabase,CardanoImmutableFilesFull"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ jobs:
400400
mode: ["std"]
401401
era: ${{ fromJSON(needs.build-ubuntu.outputs.eras) }}
402402
next_era: [""]
403-
cardano_node_version: ["10.5.2", "10.6.2", "10.7.1"]
403+
cardano_node_version: ["10.6.2", "10.7.1", "11.0.1"]
404404
hard_fork_latest_era_at_epoch: [0]
405405
run_id: ["#1"]
406406
extra_args: ["--aggregate-signature-type=Concatenation"]

.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/10.7.1/cardano-node-10.7.1-linux.tar.gz
28+
default: https://github.com/IntersectMBO/cardano-node/releases/download/11.0.1/cardano-node-11.0.1-linux.tar.gz
2929
dry_run:
3030
description: Dry run will not push the Docker images to the registry
3131
required: true

docs/runbook/prepare-cardano-node-artifacts/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ export CARDANO_NODE_REF=**CARDANO_NODE_REF**
3232
export GCP_CARDANO_IMAGE_REGISTRY=${GCP_REGION}-docker.pkg.dev/${GCP_PROJECT_ID}/${GCP_DOCKER_REPOSITORY}/cardano-node
3333
```
3434

35-
Here is an example for version `10.7.1-integration`:
35+
Here is an example for version `11.0.1-integration`:
3636

3737
```bash
3838
export GCP_PROJECT_ID=iog-hydra
3939
export GCP_REGION=europe-west1
4040
export GCP_DOCKER_REPOSITORY=mithril-cardano-node-docker-test
4141
export GCP_ARTIFACTS_BUCKET=mithril-cardano-node-artifacts-test
42-
export CARDANO_NODE_VERSION=10.7.1-integration
43-
export CARDANO_NODE_REF=release/10.7
42+
export CARDANO_NODE_VERSION=11.0.1-integration
43+
export CARDANO_NODE_REF=release/11.0
4444
export GCP_CARDANO_IMAGE_REGISTRY=${GCP_REGION}-docker.pkg.dev/${GCP_PROJECT_ID}/${GCP_DOCKER_REPOSITORY}/cardano-node
4545
```
4646

@@ -198,7 +198,7 @@ echo $CARDANO_SHARE_DIR
198198

199199
#### Create the configuration directory for the new version
200200

201-
The Cardano node configuration files are stored under `mithril-infra/assets/docker/cardano/config/`. The version folder name can omit the patch version if the configuration is valid for all patch versions of the minor release (e.g. use `10.7` instead of `10.7.1`):
201+
The Cardano node configuration files are stored under `mithril-infra/assets/docker/cardano/config/`. The version folder name can omit the patch version if the configuration is valid for all patch versions of the minor release (e.g. use `11.0` instead of `11.0.1`):
202202

203203
```bash
204204
export CARDANO_CONFIG_VERSION=**CARDANO_CONFIG_VERSION**

docs/runbook/upgrade-cardano-node/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ Export the environment variables for the target Cardano node version:
3131
export CARDANO_NODE_VERSION=**CARDANO_NODE_VERSION**
3232
```
3333

34-
Here is an example for version `10.7.1`:
34+
Here is an example for version `11.0.1`:
3535

3636
```bash
37-
export CARDANO_NODE_VERSION=10.7.1
37+
export CARDANO_NODE_VERSION=11.0.1
3838
```
3939

4040
The Cardano node configuration files (topology, genesis, config) for each network must be updated in the `mithril-infra` directory. The configuration files are available in the release bundle of the Cardano node in the `share` directory.
4141

42-
When deploying the infrastructure, the version of the Cardano node is matched exactly and fails over the minor version by matching the folder name in the `mithril-infra/assets/docker/cardano/config` folder. If the new version configuration files are valid for all minor versions you can name the folder by omitting the patch version (eg `10.7` instead of `10.7.1`).
42+
When deploying the infrastructure, the version of the Cardano node is matched exactly and fails over the minor version by matching the folder name in the `mithril-infra/assets/docker/cardano/config` folder. If the new version configuration files are valid for all minor versions you can name the folder by omitting the patch version (eg `11.0` instead of `11.0.1`).
4343

4444
Update the Cardano node image version in the infrastructure configuration for each network:
4545

docs/runbook/warmup-cardano-node/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ export GENESIS_VERIFICATION_KEY=$(wget -q -O - https://raw.githubusercontent.com
5959
export CARDANO_NODE_VERSION=**CARDANO_NODE_VERSION**
6060
```
6161

62-
Here is an example for version `10.7.1`:
62+
Here is an example for version `11.0.1`:
6363

6464
```bash
65-
export CARDANO_NODE_VERSION=10.7.1
65+
export CARDANO_NODE_VERSION=11.0.1
6666
```
6767

6868
## Phase 0: Verify sufficient disk space

docs/website/root/manual/develop/run-mithril-devnet.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ You should see the following information displayed:
107107
>> Artifacts Directory[env::ARTIFACTS_DIR]: artifacts
108108
>> Cardano Full nodes [env::NUM_FULL_NODES]: 1
109109
>> Cardano SPO nodes [env::NUM_POOL_NODES]: 2
110-
>> Cardano Node Version [env::CARDANO_NODE_VERSION]: 10.7.1
110+
>> Cardano Node Version [env::CARDANO_NODE_VERSION]: 11.0.1
111111
>> Cardano Network Magic [env::NETWORK_MAGIC]: 42
112112
>> Cardano Hard Fork Babbage At Epoch [env::HARD_FORK_BABBAGE_AT_EPOCH]: 0
113113
>> Cardano Hard Fork Conway At Epoch [env::HARD_FORK_CONWAY_AT_EPOCH]: 0
@@ -126,7 +126,7 @@ generated genesis with: 3 genesis keys, 2 non-delegating UTxO keys, 2 stake pool
126126
>> Start Cardano network
127127
cardano-cli 10.1.1.0 - linux-x86_64 - ghc-8.10
128128
git rev 01bda2e2cb0a70cd95067d696dbb44665f1d680a
129-
cardano-node 10.7.1 - linux-x86_64 - ghc-8.10
129+
cardano-node 11.0.1 - linux-x86_64 - ghc-8.10
130130
git rev 01bda2e2cb0a70cd95067d696dbb44665f1d680a
131131
>> Starting Cardano node 'node-full1'
132132
>> Starting Cardano node 'node-pool1'
@@ -191,7 +191,7 @@ Signer 2 pool1y3pxhtqytcwy3mmnawqf2ej0x9sz5frkkwkz6scfqmzyyw8u38v Certified Po
191191
>> Bootstrap the Genesis certificate
192192
{"msg":"Started","v":0,"name":"mithril-aggregator","level":20,"time":"2024-11-14T10:29:07.953666896Z","hostname":"c993b6b764f2","pid":1,"node_version":"0.5.110+e2fa1e0","run_mode":"dev"}
193193
{Genesis bootstrap for test only!
194-
"msg":"BOOTSTRAP GENESIS command","v":0,"name":"mithril-aggregator","level":20,"time":"2024-11-14T10:29:07.95394937Z","hostname":"c993b6b764f2","pid":1,"config":"Configuration { environment: Production, cardano_cli_path: \"/app/bin/cardano-cli\", cardano_node_socket_path: \"/data/ipc/node.sock\", cardano_node_version: \"10.7.1\", network_magic: Some(42), network: \"devnet\", chain_observer_type: Pallas, protocol_parameters: ProtocolParameters { k: 5, m: 100, phi_f: 0.65 }, snapshot_uploader_type: Local, snapshot_bucket_name: None, snapshot_use_cdn_domain: false, server_ip: \"0.0.0.0\", server_port: 8080, run_interval: 1000, db_directory: \"/data/db\", snapshot_directory: \".\", data_stores_directory: \"/data/mithril/aggregator/stores\", genesis_verification_key: \"5b33322c3235332c3138362c3230312c3137372c31312c3131372c3133352c3138372c3136372c3138312c3138382c32322c35392c3230362c3130352c3233312c3135302c3231352c33302c37382c3231322c37362c31362c3235322c3138302c37322c3133342c3133372c3234372c3136312c36385d\", reset_digests_cache: false, disable_digests_cache: false, store_retention_limit: None, era_reader_adapter_type: Bootstrap, era_reader_adapter_params: None, signed_entity_types: None, snapshot_compression_algorithm: Zstandard, zstandard_parameters: None, cexplorer_pools_url: None, signer_importer_run_interval: 720, allow_unparsable_block: false, cardano_transactions_prover_cache_pool_size: 10, cardano_transactions_database_connection_pool_size: 10, cardano_transactions_signing_config: CardanoTransactionsSigningConfig { security_parameter: BlockNumber(3000), step: BlockNumber(120) }, cardano_prover_max_hashes_allowed_by_request: 100, cardano_transactions_block_streamer_max_roll_forwards_per_poll: 10000, enable_metrics_server: false, metrics_server_ip: \"0.0.0.0\", metrics_server_port: 9090, persist_usage_report_interval_in_seconds: 10 }"}
194+
"msg":"BOOTSTRAP GENESIS command","v":0,"name":"mithril-aggregator","level":20,"time":"2024-11-14T10:29:07.95394937Z","hostname":"c993b6b764f2","pid":1,"config":"Configuration { environment: Production, cardano_cli_path: \"/app/bin/cardano-cli\", cardano_node_socket_path: \"/data/ipc/node.sock\", cardano_node_version: \"11.0.1\", network_magic: Some(42), network: \"devnet\", chain_observer_type: Pallas, protocol_parameters: ProtocolParameters { k: 5, m: 100, phi_f: 0.65 }, snapshot_uploader_type: Local, snapshot_bucket_name: None, snapshot_use_cdn_domain: false, server_ip: \"0.0.0.0\", server_port: 8080, run_interval: 1000, db_directory: \"/data/db\", snapshot_directory: \".\", data_stores_directory: \"/data/mithril/aggregator/stores\", genesis_verification_key: \"5b33322c3235332c3138362c3230312c3137372c31312c3131372c3133352c3138372c3136372c3138312c3138382c32322c35392c3230362c3130352c3233312c3135302c3231352c33302c37382c3231322c37362c31362c3235322c3138302c37322c3133342c3133372c3234372c3136312c36385d\", reset_digests_cache: false, disable_digests_cache: false, store_retention_limit: None, era_reader_adapter_type: Bootstrap, era_reader_adapter_params: None, signed_entity_types: None, snapshot_compression_algorithm: Zstandard, zstandard_parameters: None, cexplorer_pools_url: None, signer_importer_run_interval: 720, allow_unparsable_block: false, cardano_transactions_prover_cache_pool_size: 10, cardano_transactions_database_connection_pool_size: 10, cardano_transactions_signing_config: CardanoTransactionsSigningConfig { security_parameter: BlockNumber(3000), step: BlockNumber(120) }, cardano_prover_max_hashes_allowed_by_request: 100, cardano_transactions_block_streamer_max_roll_forwards_per_poll: 10000, enable_metrics_server: false, metrics_server_ip: \"0.0.0.0\", metrics_server_port: 9090, persist_usage_report_interval_in_seconds: 10 }"}
195195
{"msg":"Opening SQLite connection","v":0,"name":"mithril-aggregator","level":20,"time":"2024-11-14T10:29:07.954098066Z","hostname":"c993b6b764f2","pid":1,"src":"ConnectionBuilder","path":"/data/mithril/aggregator/stores/aggregator.sqlite3"}
196196
{"msg":"Enabling SQLite Write Ahead Log journal mode","v":0,"name":"mithril-aggregator","level":20,"time":"2024-11-14T10:29:07.954185725Z","hostname":"c993b6b764f2","pid":1,"src":"ConnectionBuilder"}
197197
{"msg":"Enabling SQLite foreign key support","v":0,"name":"mithril-aggregator","level":20,"time":"2024-11-14T10:29:07.954483371Z","hostname":"c993b6b764f2","pid":1,"src":"ConnectionBuilder"}
@@ -332,7 +332,7 @@ The networks will be queried every second and will display:
332332
"http://0.0.0.0:8080/aggregator/artifact/snapshot/4c7b06dd2bef1416391b92a46dae7d2f606ced2954b628f844b021ba5b52b15f/download"
333333
],
334334
"compression_algorithm": "zstandard",
335-
"cardano_node_version": "10.7.1"
335+
"cardano_node_version": "11.0.1"
336336
},
337337
{
338338
"digest": "b98b25f505401e967df1012a4c13385290db15d157d0292e9f8290bd9933a66e",
@@ -349,7 +349,7 @@ The networks will be queried every second and will display:
349349
"http://0.0.0.0:8080/aggregator/artifact/snapshot/b98b25f505401e967df1012a4c13385290db15d157d0292e9f8290bd9933a66e/download"
350350
],
351351
"compression_algorithm": "zstandard",
352-
"cardano_node_version": "10.7.1"
352+
"cardano_node_version": "11.0.1"
353353
}
354354
]
355355

@@ -564,7 +564,7 @@ You will see more information about the snapshot:
564564
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
565565
| Size | 2323485648 |
566566
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
567-
| Cardano node version | 10.7.1 |
567+
| Cardano node version | 11.0.1 |
568568
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
569569
| Location | https://storage.googleapis.com/cdn.aggregator.testing-preview.api.mithril.network/preview-e539-i10787.db5f50a060d4b813125c4263b700ecc96e5d8c8710f0430e5c80d2f0fa79b667.tar.zst |
570570
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -594,9 +594,9 @@ You will see that the certificate chain is validated to ensure the issued certif
594594
7/7 - Verifying the cardano db signature…
595595
Cardano database snapshot 'bfd6621886fe1d3810e1ffb5e366c1688f9cc2ac1ee6aa40eb99ab28f0cc1fd6' archives have been successfully unpacked. Immutable files have been successfully verified with Mithril.
596596

597-
Files in the directory 'db' can be used to run a Cardano node with version >= 10.7.1.
597+
Files in the directory 'db' can be used to run a Cardano node with version >= 11.0.1.
598598

599599
If you are using Cardano Docker image, you can restore a Cardano Node with:
600600

601-
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/mithril/data/testnet/bfd6621886fe1d3810e1ffb5e366c1688f9cc2ac1ee6aa40eb99ab28f0cc1fd6/db",target=/data/db/ -e NETWORK=preview ghcr.io/intersectmbo/cardano-node:10.7.1
601+
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/mithril/data/testnet/bfd6621886fe1d3810e1ffb5e366c1688f9cc2ac1ee6aa40eb99ab28f0cc1fd6/db",target=/data/db/ -e NETWORK=preview ghcr.io/intersectmbo/cardano-node:11.0.1
602602
```

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ You will see more information about the snapshot:
461461
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
462462
| Size | 3.14 GiB |
463463
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
464-
| Cardano node version | 10.7.1 |
464+
| Cardano node version | 11.0.1 |
465465
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
466466
| Location | https://storage.googleapis.com/cdn.aggregator.pre-release-preview.api.mithril.network/cardano-immutable-files-full/preview-e916-i18323.a1b5e6f43521fd9c5f55e3d6bf27dc4a62f43980681cb67e28cc40582a0d1974.tar.zst |
467467
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -506,16 +506,16 @@ You will see that the selected snapshot archive has been downloaded locally unpa
506506
7/7 - Verifying the cardano db signature
507507
Cardano database snapshot '188f65fc7d3bbf30a59ab05ce4ec6649cec96a1b51b909ca0d1702555e8605d0' archives have been successfully unpacked. Immutable files have been successfully verified with Mithril.
508508
509-
Files in the directory 'db' can be used to run a Cardano node with version >= 10.7.1.
509+
Files in the directory 'db' can be used to run a Cardano node with version >= 11.0.1.
510510
511511
If you are using the Cardano Docker image, you can restore a Cardano node with:
512512
513-
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/mithril/data/testnet/a1b5e6f43521fd9c5f55e3d6bf27dc4a62f43980681cb67e28cc40582a0d1974/db",target=/data/db/ -e NETWORK=preview ghcr.io/intersectmbo/cardano-node:10.7.1
513+
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/mithril/data/testnet/a1b5e6f43521fd9c5f55e3d6bf27dc4a62f43980681cb67e28cc40582a0d1974/db",target=/data/db/ -e NETWORK=preview ghcr.io/intersectmbo/cardano-node:11.0.1
514514
515515
516516
Upgrade and replace the restored ledger state snapshot to 'LMDB' flavor by running the command:
517517
518-
mithril-client tools utxo-hd snapshot-converter --db-directory db --cardano-node-version 10.7.1 --utxo-hd-flavor LMDB --commit
518+
mithril-client tools utxo-hd snapshot-converter --db-directory db --cardano-node-version 11.0.1 --utxo-hd-flavor LMDB --commit
519519
```
520520
521521
### Step 5 (optional): Convert the ledger state snapshot to another flavor
@@ -543,7 +543,7 @@ You can also replace `latest` with a specific Cardano node version tag which wil
543543
Launch an empty Cardano node and make it live in minutes!
544544
545545
```bash
546-
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:10.7.1
546+
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:11.0.1
547547
```
548548
549549
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:

0 commit comments

Comments
 (0)