Skip to content

fix(spartan): fund sponsored FPC in block-capacity bench env - #24248

Merged
PhilWindle merged 1 commit into
merge-train/spartan-v5from
phil/fund-sponsored-fpc-block-capacity
Jun 23, 2026
Merged

fix(spartan): fund sponsored FPC in block-capacity bench env#24248
PhilWindle merged 1 commit into
merge-train/spartan-v5from
phil/fund-sponsored-fpc-block-capacity

Conversation

@PhilWindle

Copy link
Copy Markdown
Contributor

Problem

The nightly block-capacity-benchmark job has been failing fast (~5 min) with every transaction rejected:

Invalid tx: Insufficient fee payer balance (required=507345496560000, available=0)

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.ts pays all fees through SponsoredFeePaymentMethod (account deploys, mints, transfers). The fee payer is therefore the sponsored FPC, not the worker wallets. But spartan/environments/block-capacity.env never set SPONSORED_FPC=true, so the network was deployed without funding the sponsored FPC at genesis — its fee-juice balance is available=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.env was the only one missing it. network-defaults.yml documents the flag as "Fund sponsored FPC with fee juice".

Fix

Add SPONSORED_FPC=true to block-capacity.env.

Found while investigating the failures in nightly Spartan Benchmarks run #95.

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.
@PhilWindle
PhilWindle merged commit 484e63f into merge-train/spartan-v5 Jun 23, 2026
12 checks passed
@PhilWindle
PhilWindle deleted the phil/fund-sponsored-fpc-block-capacity branch June 23, 2026 18:47
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