Skip to content
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

[BUG] calculate-min-fee for Unwitnessed Tx BabbageEra #939

Open
soltanoff opened this issue Oct 16, 2024 · 2 comments
Open

[BUG] calculate-min-fee for Unwitnessed Tx BabbageEra #939

soltanoff opened this issue Oct 16, 2024 · 2 comments

Comments

@soltanoff
Copy link

Internal/External
External .

Area
cardano-cli

Summary
Do you know what I need to do to calculate the commission for Unwitnessed Tx BabbageEra type of transaction body?

Or what should I do to change the type of transaction body?

Why do I only have these types on the mainnet? (TxUnsignedByron, TxUnsignedShelley, TxBodyAllegra, TxBodyMary, TxBodyAlonzo, TxBodyBabbage)

In general, a strange situation, because in the testnet this type of transaction body works and I can calculate the commission and sign it in the future.

On the mainnet, I have the following problem:

Command failed: transaction calculate-min-fee 
Error: Failed to decode neither the cli's serialisation format nor the ledger's CDDL serialisation format. 
       TextEnvelope error: /dev/stdin: 
       TextEnvelope type error: 
       Expected one of: TxUnsignedByron, TxUnsignedShelley, TxBodyAllegra, TxBodyMary, TxBodyAlonzo, TxBodyBabbage 
       Actual: Unwitnessed Tx BabbageEra
       TextEnvelopeCddl error: /dev/stdin: Could not JSON decode TextEnvelopeCddl file at: /dev/stdin Error: Error in $: not enough input

How I do it on the testnet:

cardano-cli transaction calculate-min-fee \
  --testnet-magic 1 \
  --protocol-params-file <(echo '<this is a protocol params>') \
  --tx-body-file /dev/stdin <<< '{"type": "Unwitnessed Tx BabbageEra", "description": "Ledger Cddl Format", "cborHex": "<hex>"}' \
  --tx-in-count 1 \
  --tx-out-count 2 \
  --witness-count 1
175269 Lovelace
@soltanoff soltanoff changed the title Calculate fee [BUG] calculate-min-fee for Unwitnessed Tx BabbageEra Oct 16, 2024
@soltanoff
Copy link
Author

soltanoff commented Oct 16, 2024

The testnet expected one of:

  • Witnessed Tx ByronEra,
  • Witnessed Tx ShelleyEra,
  • Witnessed Tx AllegraEra,
  • Witnessed Tx MaryEra,
  • Witnessed Tx AlonzoEra,
  • Witnessed Tx BabbageEra,
  • Unwitnessed Tx ByronEra,
  • Unwitnessed Tx ShelleyEra,
  • Unwitnessed Tx AllegraEra,
  • Unwitnessed Tx MaryEra,
  • Unwitnessed Tx AlonzoEra,
  • Unwitnessed Tx BabbageEra

But the mainnet only:

  • TxUnsignedByron,
  • TxUnsignedShelley,
  • TxBodyAllegra,
  • TxBodyMary,
  • TxBodyAlonzo,
  • TxBodyBabbage

Through trial and error, it turned out that the problem was in the operating system of the cardano image. The pipes are broken on Debian-based, so we've moved to Ubuntu-based images on all environments.

BUT you have to investigate and fix it for Debian-based image.

@soltanoff
Copy link
Author

This issue moved from IntersectMBO/cardano-node#4945

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

No branches or pull requests

1 participant