Repository navigation
fix(fees): align Studio execution budget floor with Consensus - #1783
Merged
ci-core-e2e-runner[bot] merged 1 commit intoSep 28, 2026
Merged
Conversation
Price the proposed receipt wrapper plus the 64-byte terminal reserve when quoting and validating the minimum execution budget. Keep the legacy 512-byte receipt estimator separate. Cover the canonical v0.6 quote, alternate wrapper sizes, exact admission boundary, and locked top-up formula. Validated with 1,635 Studio unit tests and repository pre-commit hooks.
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merged
3 of 4 tasks
kirilaa
self-requested a review
September 28, 2026 16:17
kirilaa
approved these changes
Sep 28, 2026
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.
Problem and outcome
The v0.6 JS/Studio lane in genlayer-e2e #796 fails
054_fee_consensus_parity: Studio'ssim_getFeeConfigreports an execution-budget admission floor of 76,548,000,000,000 wei while the updated Consensus policy reports 78,852,000,000,000 wei. Studio still priced a 512-byte receipt for admission. Consensus now reserves the configured 1,024-byte receipt wrapper plus 64 terminal-output bytes.This PR makes Studio's admission quote and validation use the same receipt-byte floor as Consensus. At the default receipt price, the floor and derived default fee deposit rise by 2,304,000,000,000 wei.
Delivery context
Depends-On: genlayerlabs/genlayer-consensus#1692
Target:
v0.123-devata0300c398528f743465c4e060c80877ced3873c5. The composed qualification source is genlayer-e2e #796, with Node #2017. The separate JS SDK fallback correction is genlayer-js #223; E2E #796 includes both PRs. Studio #1774 is a separate draft GenVM allocation change with different hunks infees.pyand a temporary source pin; it is excluded from this fee-floor cut.Implementation and validation
receiptWrapperBytes + 64through the existing proposed-receipt gas formula. Keep the legacy 512-byte estimator for its other callers.git diff --check: passed.The admission floor is a protocol compatibility change. A Studio transaction funded at the former floor may need a top-up after this revision; the locked-policy top-up test covers formula and price selection. Full cross-repository E2E qualification remains with #796 after it includes this PR.
User-facing release notes
Studio fee estimates now match the v0.6 minimum execution budget required by Consensus.