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

feat: estimate prover gas while executing #1974

Merged
merged 47 commits into from
Mar 4, 2025
Merged

feat: estimate prover gas while executing #1974

merged 47 commits into from
Mar 4, 2025

Conversation

tqn
Copy link
Contributor

@tqn tqn commented Jan 23, 2025

When SP1Prover::execute is called, gas is calculated, logged, and included in the ExecutionReport. This behavior may be disabled by configuring SP1Context.

Gas is never calculated while proving (unless an undocumented environment variable is set). This is because gas calculation requires a certain shape checking/stopping logic in the executor. The environment variable logic only exists for debugging purposes.

@tqn tqn force-pushed the tqn/prover-gas branch 4 times, most recently from 87490c9 to 53ff6a2 Compare January 25, 2025 03:23
@tqn tqn force-pushed the tqn/prover-gas branch 2 times, most recently from 034b99f to d6e1719 Compare January 27, 2025 18:32
@tqn tqn marked this pull request as ready for review February 21, 2025 23:56
@tqn tqn force-pushed the tqn/prover-gas branch from ef070ec to 5d301cb Compare March 4, 2025 01:46
@tqn tqn merged commit 507de3d into dev Mar 4, 2025
11 checks passed
@tqn tqn deleted the tqn/prover-gas branch March 4, 2025 06:04
nhtyy pushed a commit that referenced this pull request Mar 6, 2025
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