Skip to content

Add NodeToClientV_24 for ValidateTx query#5377

Draft
palas wants to merge 1 commit into
mainfrom
tx-validation
Draft

Add NodeToClientV_24 for ValidateTx query#5377
palas wants to merge 1 commit into
mainfrom
tx-validation

Conversation

@palas
Copy link
Copy Markdown
Contributor

@palas palas commented May 27, 2026

Description

Adds NodeToClientV_24 to the node-to-client protocol version enumeration, needed for the new ValidateTx query in the LocalStateQuery protocol.

Part of IntersectMBO/cardano-cli#1380.

Big picture: transaction validate currently applies applyTx client-side with an empty UTxO set, making it unable to properly validate transactions. This cross-repo change adds a new ValidateTx query to the LocalStateQuery protocol so the node validates transactions against its real ledger state and UTxO set.

transaction validate PR list:

What this PR does

  • Adds NodeToClientV_24 constructor to the NodeToClientVersion enum
  • Adds CBOR codec entries (encode/decode) for the new version
  • Adds JSON serialisation instances (FromJSON/ToJSON) for NodeToClientV_24

Checklist

Quality

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant