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

Fix program fetching in cost function #1719

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

HarukaMa
Copy link
Contributor

Motivation

In snarkos developer context, we don't really have a transaction storage; programs are added to Process directly. This will cause executing to fail as the cost function can't find the program in the non-existent storage. This PR makes the cost function read the program directly from the Process instead of the consensus storage to make executing work again.

Test Plan

Well, there really should be a test case for this but I didn't write one...

Related PRs

(What's that protocol-docs repo? Seems it's private.)

@howardwu
Copy link
Contributor

Thank you for doing this @HarukaMa ! I was planning to do it myself as well.

Copy link
Contributor

@howardwu howardwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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 this pull request may close these issues.

2 participants