Skip to content

feat: support Cardano node 10.5 #2664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

jpraynaud
Copy link
Member

@jpraynaud jpraynaud commented Aug 7, 2025

Content

This PR includes the support for Cardano node 10.5:

  • preview
  • preprod
  • mainnet

Pre-submit checklist

  • Branch
    • Crates versions are updated (if relevant)
    • CHANGELOG file is updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Issue(s)

Relates to #2623

@jpraynaud jpraynaud self-assigned this Aug 7, 2025
@jpraynaud jpraynaud requested review from Copilot and rezabaram August 7, 2025 15:38
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for Cardano node version 10.5.1 across all three Mithril networks (preview, preprod, and mainnet), upgrading from the previous version 10.4.1. The upgrade includes updating configuration files, network configurations, and documentation to ensure compatibility with the new Cardano node version.

  • Updated minimum Cardano node version requirements across all networks
  • Modified Cardano node configuration files to use Genesis mode and updated LedgerDB settings
  • Updated shell scripts to handle new transaction ID format from Cardano CLI

Reviewed Changes

Copilot reviewed 36 out of 52 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
networks.json Updated minimum mithril-signer version from 10.3.1 to 10.4.1 for all networks
Multiple Docker files Updated CARDANO_NODE_VERSION from 10.4.1 to 10.5.1
Cargo.toml files Bumped version numbers for mithril components
Config files Updated Cardano node configurations for 10.5 with Genesis mode and LedgerDB settings
Shell scripts Added handling for new txhash format in transaction processing
Documentation Updated examples and references to use version 10.5.1
CI workflows Updated test configurations to use new Cardano node version

Comment on lines +124 to +125
if [[ "\${TX_ID_SUBMITTED}" =~ txhash ]]; then
TX_ID_SUBMITTED=\$(echo \$TX_ID_SUBMITTED | jq -r '.txhash')
Copy link
Preview

Copilot AI Aug 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The regex pattern matching for 'txhash' should be more specific to avoid false positives. Consider using a more precise pattern like '^."txhash".$' or checking for the JSON structure more robustly.

Suggested change
if [[ "\${TX_ID_SUBMITTED}" =~ txhash ]]; then
TX_ID_SUBMITTED=\$(echo \$TX_ID_SUBMITTED | jq -r '.txhash')
if echo "\${TX_ID_SUBMITTED}" | jq -e 'has("txhash")' > /dev/null 2>&1; then
TX_ID_SUBMITTED=\$(echo "\$TX_ID_SUBMITTED" | jq -r '.txhash')

Copilot uses AI. Check for mistakes.

@@ -97,7 +97,10 @@ function send_funds_to_era_address {

## Compute the submitted transaction id
TX_ID_SUBMITTED=\$(CARDANO_NODE_SOCKET_PATH=node-pool${N}/ipc/node.sock $CARDANO_CLI \${CURRENT_CARDANO_ERA} transaction txid --tx-file node-pool${N}/tx/tx${N}-era-funds.tx)

if [[ "\${TX_ID_SUBMITTED}" =~ txhash ]]; then
Copy link
Preview

Copilot AI Aug 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The regex pattern matching for 'txhash' should be more specific to avoid false positives. Consider using a more precise pattern like '^."txhash".$' or checking for the JSON structure more robustly.

Copilot uses AI. Check for mistakes.

Copy link

github-actions bot commented Aug 7, 2025

Test Results

    4 files  ±0    158 suites  ±0   22m 46s ⏱️ +35s
2 152 tests ±0  2 152 ✅ ±0  0 💤 ±0  0 ❌ ±0 
6 602 runs  ±0  6 602 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit d02b281. ± Comparison against base commit de4de82.

♻️ This comment has been updated with latest results.

@jpraynaud jpraynaud force-pushed the jpraynaud/2623-upgrade-cardano-node-10.5 branch from ff4afe2 to db23b63 Compare August 8, 2025 12:53
* mithril-aggregator from `0.7.79` to `0.7.80`
* mithril-signer from `0.2.263` to `0.2.264`
* mithril-end-to-end from `0.4.99` to `0.4.100`
* mithril-infra/assets/infra.version from `0.4.6` to `0.4.7`
* mithril-test-lab/mithril-devnet/VERSION from `0.4.14` to `0.4.15`
@jpraynaud jpraynaud force-pushed the jpraynaud/2623-upgrade-cardano-node-10.5 branch from db23b63 to d02b281 Compare August 8, 2025 13:33
@jpraynaud jpraynaud deployed to testing-preview August 8, 2025 14:23 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants