Skip to content

WIP: Switch to cardano-config#6608

Open
jasagredo wants to merge 3 commits into
f-f/prepare-11.1from
js/cardano-config
Open

WIP: Switch to cardano-config#6608
jasagredo wants to merge 3 commits into
f-f/prepare-11.1from
js/cardano-config

Conversation

@jasagredo

Copy link
Copy Markdown
Contributor

Description

Add your description here, if it fixes a particular issue please provide a
link
to the issue.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Running tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-9.6 and ghc-9.12
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

@jasagredo jasagredo requested a review from a team as a code owner June 19, 2026 16:18
jasagredo and others added 3 commits June 23, 2026 15:40
…rdano-config

These tools parsed the node configuration file with the node's own
parseNodeConfigurationFP / FromJSON PartialNodeConfiguration. Route them
through cardano-config instead, via the new
Cardano.Node.Configuration.Adapter helper (nodeConfigurationFromFile),
matching the cardano-node switch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
With cardano-node, the chairman, tx-generator and cardano-testnet all
routing through cardano-config, nothing parses the node configuration
file via the node's own machinery anymore. Drop:

  * instance FromJSON PartialNodeConfiguration (and all its helpers),
  * instance AdjustFilePaths PartialNodeConfiguration (path resolution
    is now done in the Adapter),
  * parseNodeConfigurationFP,

together with the imports they pulled in (including the yaml package
dependency) and the two POM tests that exercised the JSON decoding. The
PartialNodeConfiguration / NodeConfiguration model and makeNodeConfiguration
are kept: they remain the node's resolved configuration type and the target
of Cardano.Node.Configuration.Adapter.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jasagredo jasagredo force-pushed the js/cardano-config branch from 22f7aad to 23c26d3 Compare June 23, 2026 20:48
@jasagredo jasagredo requested a review from a team as a code owner June 23, 2026 20:48
@jasagredo jasagredo force-pushed the js/cardano-config branch from 23c26d3 to 1aab680 Compare June 23, 2026 20:48
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.

1 participant