Skip to content

fix: Simulate gas in n tps test. Set min txs per block to 1 (backport #21312)#21329

Merged
PhilWindle merged 1 commit intobackport-to-v4-stagingfrom
claudebox/backport-21312-sim-gas-v4
Mar 10, 2026
Merged

fix: Simulate gas in n tps test. Set min txs per block to 1 (backport #21312)#21329
PhilWindle merged 1 commit intobackport-to-v4-stagingfrom
claudebox/backport-21312-sim-gas-v4

Conversation

@AztecBot
Copy link
Collaborator

Summary

Backport of #21312 to v4.

  • Defaults minimum transactions per block to 1 in deployments
  • Updates n_tps.test.ts to use simulated gas limits
  • Adds configurable sequencer multiplier (SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER)
  • Corrects gossipsub degree default from 6 to 8

Conflicts resolved

  • spartan/environments/alpha-net.env — deleted in v4, dropped
  • spartan/environments/devnet.env — kept v4's existing PUBLISHERS_PER_VALIDATOR_KEY=1, applied SEQ_MIN_TX_PER_BLOCK=1
  • spartan/environments/prove-n-tps-fake.env — kept v4's line ordering, applied SEQ_MIN_TX_PER_BLOCK=1

ClaudeBox log: https://claudebox.work/s/d6f43353532bf0ba?run=1

This PR fixes some deployment/testing related problems:

1. Defaults minimum transactions per block to 1 in deployments.
2. Updates the `n_tps.test.ts` to use the result of simulation as the
gas limit.
3. Allows for configuring the sequencer multiplier.
4. Corrects the deployed value of gossipsub degree from 6 to 8.
@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 10, 2026
@PhilWindle PhilWindle marked this pull request as ready for review March 10, 2026 18:21
@PhilWindle PhilWindle enabled auto-merge (squash) March 10, 2026 18:22
@PhilWindle PhilWindle merged commit 93c0f25 into backport-to-v4-staging Mar 10, 2026
21 checks passed
@PhilWindle PhilWindle deleted the claudebox/backport-21312-sim-gas-v4 branch March 10, 2026 18:40
ludamad added a commit that referenced this pull request Mar 11, 2026
BEGIN_COMMIT_OVERRIDE
chore: chonk proof compression poc (#20645)
feat: Update L1 to L2 message APIs (#20913)
fix: adapt chonk proof compression for v4 Translator layout (#21067)
fix: omit bigint priceBumpPercentage from IPC config in testbench worker
(#21086)
feat: standby mode for prover broker (#21098)
fix(p2p): remove default block handler in favor of block handler
(#21105)
chore: prepare barretenberg-rs for crates.io publishing (#20496)
feat: reenable function selectors + additional validation in public
setup allowlist (backport #20909, #21122) (#21129)
chore: remove stale aes comments (#21133)
chore: remove auto-tag job (#21127)
feat: calldata length validation of public setup function allowlist
(#21139)
feat: run AVM NAPI simulations on dedicated threads instead of libuv
pool (#21138)
feat: Remove non-protocol contracts from public setup allowlist (#21154)
feat!: Expose offchain effects when simulating/sending txs (backport
#20563) (#21110)
chore: bump minor version (#21171)
chore: backport #21161 (tally slashing pruning improvements) to v4
(#21166)
chore: More updated Alpha configuration (backport #21155) (#21165)
fix(p2p): report most severe failure in runValidations (#21185)
feat: add ergonomic conversions for Noir's `Option<T>` (#21107)
docs: clarifying Noir fields vs struct fields in event metadata (#21172)
fix: bump lighthouse consensus client v7.1.0 -> v8.0.1 (#21170)
fix: update dependencies (#20997)
chore: New alpha-net environment (#20800) (#21202)
chore: code decuplication + refactor (public setup allowlist) (#21200)
feat: mask all ciphertext fields with Poseidon2-derived values (backport
#21009) (#21140)
chore: disable sponsored FPC in testnet (#21235)
feat!: exposing pub event pagination on wallet (#21197)
refactor(pxe): narrow tryGetPublicKeysAndPartialAddress return type
(backport #21208) (#21236)
feat: orchestrator enqueues via serial queue (#21247)
feat: rollup mana limit gas validation (#21219)
chore: deploy SPONSORED_FPC in test networks (#21254)
fix(sequencer): fix log when not enough txs (#21297)
fix: Simulate gas in n tps test. Set min txs per block to 1 (backport
#21312) (#21329)
fix(log): do not log validation error if unregistered handler (#21111)
fix(node): fix index misalignment in findLeavesIndexes (#21327)
fix: limit parallel blocks in prover to max AVM parallel simulations
(#21320)
fix: use native sha256 to speed up proving job id generation (#21292)
fix(validator): wait for l1 sync before processing block proposals
(#21336)
fix(txpool): cap priority fee with max fees when computing priority
(#21279)
chore: reduce severity of errors due to HA node not acquiring signature
(#21311)
fix: (A-643) add buffer to maxFeePerBlobGas for gas estimation and fix
bump loop truncation (#21323)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants