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

Proof of concept gas metering #34

Merged
merged 6 commits into from
Jul 2, 2024
Merged

Proof of concept gas metering #34

merged 6 commits into from
Jul 2, 2024

Conversation

lrettig
Copy link
Contributor

@lrettig lrettig commented Jul 2, 2024

Closes #4

It's dead simple. We just use the program clock as our gas meter; each instruction consumes 4 gas units. We can add more sophisticated gas metering in the future, including more sophisticated metering of the host functions. The basic infrastructure is in place.

Also doesn't contain many tests.

@lrettig lrettig changed the title Gas metering Proof of concept gas metering Jul 2, 2024
@lrettig lrettig merged commit c2d7ab8 into main Jul 2, 2024
1 check passed
@lrettig lrettig deleted the gas-metering branch July 2, 2024 21:40
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.

Gas metering
1 participant