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

evaluateTransaction should work with utxos that only exist in the mempool. #375

Closed
AndrewWestberg opened this issue Mar 7, 2024 · 0 comments · Fixed by #377
Closed

evaluateTransaction should work with utxos that only exist in the mempool. #375

AndrewWestberg opened this issue Mar 7, 2024 · 0 comments · Fixed by #377

Comments

@AndrewWestberg
Copy link

What is your idea? Provide a use case.

Chaining transactions is currently a good way to get a lot of transactions on chain in Cardano. This involves utilizing utxos that only exist in the mempool as a result of previous transaction. These transactions are not yet on chain, but it can be much faster to make follow-up transactions. submitTransaction works this way and you are allowed to chain transactions. It will allow you to spend a utxo that only exists in the mempool.

evaluateTransaction does not currently allow using utxos that only exist in the mempool. This prevents chaining of smart contract transactions while keeping optimal costs.

Why is it a good idea?

We should be able to chain transactions that are smart contracts and at the same time, optimize costs.

What is the current alternative and why is it not good enough?

It's possible to cache the result of a previous call to evaluateTransaction that runs a similar smart contract and uses the same number and shape of input utxos. This is a fragile approach in that there could always be something that throws off the memory/steps calculation.

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

Successfully merging a pull request may close this issue.

1 participant