fix(spartan): fund sponsored FPC in block-capacity bench env - #24248
Merged
PhilWindle merged 1 commit intoJun 23, 2026
Merged
Conversation
The block-capacity benchmark pays all fees via SponsoredFeePaymentMethod,
but block-capacity.env never set SPONSORED_FPC=true, so the network was
deployed without funding the sponsored FPC at genesis. Every benchmark tx
was rejected with "Insufficient fee payer balance (required=..., available=0)",
failing all 8 cases on the first send. Every other bench env (tps-scenario,
bench-10tps, prove-n-tps-{fake,real}, next-scenario) already sets this flag.
spalladino
approved these changes
Jun 23, 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
The nightly
block-capacity-benchmarkjob has been failing fast (~5 min) with every transaction rejected:All 8 benchmark cases fail on the first
send. The build succeeds and the network is reachable — this is purely a genesis-funding problem.Root cause
block_capacity.test.tspays all fees throughSponsoredFeePaymentMethod(account deploys, mints, transfers). The fee payer is therefore the sponsored FPC, not the worker wallets. Butspartan/environments/block-capacity.envnever setSPONSORED_FPC=true, so the network was deployed without funding the sponsored FPC at genesis — its fee-juice balance isavailable=0, so no tx can be paid for.Every other bench env already sets this flag (
tps-scenario,bench-10tps,prove-n-tps-fake,prove-n-tps-real,next-scenario);block-capacity.envwas the only one missing it.network-defaults.ymldocuments the flag as "Fund sponsored FPC with fee juice".Fix
Add
SPONSORED_FPC=truetoblock-capacity.env.Found while investigating the failures in nightly Spartan Benchmarks run #95.