feat: add gas estimates rpc and spn-bidding crate - #238
Merged
Conversation
Farhad-Shabani
force-pushed
the
farhad/program-gas-stats-proto
branch
from
July 18, 2026 05:11
0925cf4 to
21a51ea
Compare
0xernesto
approved these changes
Jul 22, 2026
Farhad-Shabani
force-pushed
the
farhad/program-gas-stats-proto
branch
from
July 23, 2026 15:18
21a51ea to
7a7b104
Compare
Farhad-Shabani
force-pushed
the
farhad/program-gas-stats-proto
branch
from
July 23, 2026 15:23
7a7b104 to
3284105
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two pieces that let bidders size proof requests by expected gas instead of declared limits:
GetProgramGasEstimates RPC. Batch lookup of per-program gas estimates, derived from fulfilled request history. The estimation method lives server-side and can change without touching this contract; programs with no history are simply absent from the response. Server caps the batch size per call.
spn-bidding crate. Pure, dependency-free bidding policy shared by consumer repos.
Why
Bidders previously admitted work on concurrency counts alone, so clusters over- or under-committed depending on the proof mix. Publishing estimates from the network and centralizing the policy math gives every prover the same admission foundation, with one home for the logic instead of per-bidder copies.