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

feature: Account for gas running over the limit #8914

Merged
merged 3 commits into from
Apr 17, 2023

Conversation

aborg-dev
Copy link
Contributor

@aborg-dev aborg-dev commented Apr 14, 2023

This is a solution to #8908.

Now when we try to prepay the gas for some operation and run into the gas limit, both the gas and compute usage for that operation will be paid partially, where compute cost is calculated as gas_burnt / gas_cost * compute_cost.

@aborg-dev aborg-dev requested a review from jakmeier April 14, 2023 16:24
@aborg-dev aborg-dev requested a review from a team as a code owner April 14, 2023 16:24
runtime/near-vm-logic/src/gas_counter.rs Outdated Show resolved Hide resolved
@aborg-dev aborg-dev merged commit 0d8f45b into near:master Apr 17, 2023
@aborg-dev aborg-dev deleted the compute_costs_gas_limit branch April 17, 2023 10:05
nikurt pushed a commit that referenced this pull request Apr 18, 2023
This is a solution to #8908.

Now when we try to prepay the gas for some operation and run into the gas limit, both the gas and compute usage for that operation will be paid partially, where compute cost is calculated as `gas_burnt / gas_cost * compute_cost`.
nikurt pushed a commit that referenced this pull request Apr 28, 2023
This is a solution to #8908.

Now when we try to prepay the gas for some operation and run into the gas limit, both the gas and compute usage for that operation will be paid partially, where compute cost is calculated as `gas_burnt / gas_cost * compute_cost`.
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