cardano-scaling / hydra

Implementation of the Hydra Head protocol
https://hydra.family/head-protocol/
Apache License 2.0
284 stars 86 forks source link

BlueprintTx field in commit endpoint doesn't support Conway transactions #1595

Closed Micrograx closed 2 months ago

Micrograx commented 2 months ago

Context & versions

cardano-node: 9.1 hdyra-node: 0.18.1 cardano-cli: 9.2.1

Steps to reproduce

  1. Init a hydra head
  2. Use cardano-cli conway transaction build-raw to create a transaction to use as blueprint
  3. Provide the transaction built in the previous step in the blueprintTx field of the request to the /commit endpoint

Actual behavior

The hydra-node responds with

"Error in $.blueprintTx: \nunexpected \"l\"\nexpecting hexadecimal digit\nIncorrect transaction id format: Expected Base16-encoded bytestring, but got b; invalid bytestring size"

Expected behavior

The hydra-node should parse the blueprint correctly and build the commit tx.

Workaround

Use cardano-cli babbage transaction build-raw instead to build the blueprint.

locallycompact commented 2 months ago

This will be fixed in 0.19.0 that will be released in the next couple of days.