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

Discrepancy in execution units returned by eval #1

Open
ricomiles opened this issue Dec 19, 2024 · 1 comment
Open

Discrepancy in execution units returned by eval #1

ricomiles opened this issue Dec 19, 2024 · 1 comment

Comments

@ricomiles
Copy link

ricomiles commented Dec 19, 2024

We’ve been working on finalizing eval_tx for Dolos, and we’re using the eval function to evaluate transactions. However, we’ve encountered an issue with the execution units being returned.

We’re running our tests in preview mode and using Blaze to test the transactions. Here are the results:

using u5c provider(with our eval_tx implementation): [19724_1, 5913986_2]
using other provider(kupmios): [19728_1, 6218182_2]

As you can see, there’s a small difference in the execution units. At first glance, it doesn’t seem significant. However, when we attempt to submit the first result using a different submitter (in this case, via cardano-cli), we receive the following error:

The machine terminated part way through evaluation due to overspending the budget. 
The budget when the machine terminated was:({cpu: -304196\n| mem: -4})
Negative numbers indicate the overspent budget; 

We’ve discovered that increasing the execution units to match or exceed those returned by kupmios allows the transaction to be submitted successfully. Our findings suggest the built-in cost models used by uplc might be outdated or not fully aligned with current ledger requirements.

@rvcas
Copy link
Contributor

rvcas commented Dec 31, 2024

This crate is not yet recommended for production use

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

No branches or pull requests

2 participants