IntersectMBO / cardano-node

The core component that is used to participate in a Cardano decentralised blockchain.
https://cardano.org
Apache License 2.0
3.06k stars 721 forks source link

[BUG] - evaluateTransactionExecutionUnits fails with ScriptErrorEvaluationFailed due to overspending the budget #4784

Open jonathangenlambda opened 1 year ago

jonathangenlambda commented 1 year ago

Internal or External External

Area cardano-api

Summary When we call evaluateTransactionExecutionUnits for a TxBody which executes a Reference Script we end up with a ScriptErrorEvaluationFailed ... due to overspending the budget error.

Steps to reproduce We are calling evaluateTransactionExecutionUnits with a TxBody that executes a Reference Script. We cannot share the script here for privacy reasons but we assume that due to debug output in the script the size is considerable and exceeds the maximum allowed script units (10000000000 16000000). Due to the ScriptErrorEvaluationFailed error we cannot properly debug the script as we need to cut debug output from it.

Expected behavior According to the API description however ScriptErrorEvaluationFailed ... due to overspending the budget should never occur:

The script evaluation failed. This usually means it evaluated to an error value. This is not a case of running out of execution units (which is not possible for evaluateTransactionExecutionUnits since the whole point of it is to discover how many execution units are needed).

System info (please complete the following information): Ubuntu 22.04

cardano-api 1.35.4 from https://input-output-hk.github.io/cardano-haskell-packages, ghc-8.10.7

cardano-node 1.35.4 - linux-x86_64 - ghc-8.10 git rev ebc7be471b30e5931b35f9bbc236d21c375b91bb

cardano-cli 1.35.4 - linux-x86_64 - ghc-8.10 git rev ebc7be471b30e5931b35f9bbc236d21c375b91bb

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.