Skip to content

fix: refresh n_tps fee quotes during sustained benchmark#23797

Merged
spypsy merged 1 commit into
merge-train/spartanfrom
spy/n-tps-refresh-fee-quotes
Jun 2, 2026
Merged

fix: refresh n_tps fee quotes during sustained benchmark#23797
spypsy merged 1 commit into
merge-train/spartanfrom
spy/n-tps-refresh-fee-quotes

Conversation

@spypsy

@spypsy spypsy commented Jun 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Refresh getCurrentMinFees() on a short cache while building cloned n_tps txs so maxFeesPerGas tracks the live fee floor without reserving excessive sponsored FPC balance.
  • Set explicit low/high FeeQuote values (maxFeesPerGas vs maxPriorityFeesPerGas) instead of capping both at the priority bid.
  • Fail the benchmark when no high-value txs are sent (when configured) or when not all sent high-value txs are included.

Refresh min fees while cloning txs so maxFeesPerGas tracks the live fee floor without inflating sponsored FPC reservations, and fail when high-value txs are not all included.
@AztecBot

AztecBot commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/9b8adba1b1d2b73a�9b8adba1b1d2b73a8;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_p2p/multiple_validators_sentinel.parallel.test.ts "collects attestations for validators in proposer node when block is not published" (403s) (code: 0) group:e2e-p2p-epoch-flakes

@spypsy spypsy enabled auto-merge (squash) June 2, 2026 15:31
return minFeeRefreshPromise;
}

minFeeRefreshPromise = aztecNode.getCurrentMinFees();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused, I can't see how this ever refreshes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the refresh function that's called by getMinFeesForSend if the time for next refresh has passed.d
then reads the result that was written in cachedMinFees

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right I see, re-read the logic.

@spypsy spypsy merged commit f76b336 into merge-train/spartan Jun 2, 2026
17 checks passed
@spypsy spypsy deleted the spy/n-tps-refresh-fee-quotes branch June 2, 2026 22:21
danielntmd pushed a commit to danielntmd/aztec-packages that referenced this pull request Jun 4, 2026
BEGIN_COMMIT_OVERRIDE
chore: deploy next-net and reuse contracts (AztecProtocol#23761)
chore: turn on autoscaling (AztecProtocol#23706)
chore: rename staging-public to staging (AztecProtocol#23767)
chore(p2p): use sync hash for tx validation hashing (AztecProtocol#23768)
test(e2e): wait warmup slots in slashing tests (AztecProtocol#23719)
feat(api)!: make getTxReceipt the single tx-lookup API (AztecProtocol#23660)
fix: cap cloned n_tps fees within sponsored FPC balance (AztecProtocol#23770)
fix: protect HA validator Postgres from cluster scale-down (AztecProtocol#23772)
refactor: remove non-pipelining sequencer code path (AztecProtocol#23665)
feat(archiver): add getL2ToL1MembershipWitness node RPC (AztecProtocol#23646)
fix(p2p)!: revamp BLOCK_TXS validations (AztecProtocol#23778)
chore: name the bots (AztecProtocol#23795)
fix(e2e): ensure BBSync init (AztecProtocol#23793)
fix(p2p)!: fix BLOCK_TXS response under proposer equivocation (AztecProtocol#23786)
fix: reconnect L1 port-forward after epoch-boundary sleep in n_tps_prove
(AztecProtocol#23800)
chore: add empty vscode settings for yarn-project (AztecProtocol#23808)
fix(sequencer): only warn about missing proposed checkpoint once overdue
(AztecProtocol#23807)
fix: refresh n_tps fee quotes during sustained benchmark (AztecProtocol#23797)
fix(sequencer): enforce build-frame deadlines and align
attestation/publish windows (AztecProtocol#23776)
END_COMMIT_OVERRIDE
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.

3 participants