Repository navigation
Conversation
[High impact] Updates core block production constraints and dependencies. The required regression tests should be added before merging. Reviews (1) · Last reviewed commit: "feat(block-production): enforce SNOS out..." · Reviewed by Greptile |
| block_production_concurrency: BlockProductionConfig { | ||
| batch_size: 2, | ||
| disable_concurrency: true, | ||
| ..Default::default() | ||
| }, | ||
| bouncer_config: BouncerConfig { max_snos_full_output_cells: 60, ..BouncerConfig::max() }, |
There was a problem hiding this comment.
Key admission cases lack tests
Both new execution tests disable concurrency and only use transactions that eventually fit. The rejection tests construct TransactionTooLargeForProof directly, so they do not prove that a real oversized transaction is consumed once and lets healthy work continue.
The repository requires tests for critical block-production changes. Before merging, add an oversized transaction followed by healthy work, and cover the admission cases with concurrency enabled—the production default. Assert that the oversized transaction is not retried and the mempool drains.
Rule Used: # Madara PR Review Instructions ## Role You are reviewing a PR for Madara, a Starknet sequencer and its adjacent orchestrator stack. Prioritize correctness, protocol compliance, safety, operability, and long-term maintainability over style. Do not... (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
c18058d to
b7ded3a
Compare
|
Validated optimization update (PC Mainnet shadow replay, 2026-10-22):
Validated image: ghcr.io/madara-alliance/madara:manual-025b2c2@sha256:81dc3f5193b9f12a0a3999b40819d64f00bcfa781551eac9410a905a908e2ccb (manual run 39764449921, skip-cargo-check=true). Profiling/replay-only code is not included in this PR branch. |
5a6cdfb to
f02b287
Compare
Summary
madara-alliance/sequencerbranch at599710cebca0c6aa30f9888d26c291c02e9ee76amax_snos_full_output_cellsadmission limit, defaulting to 49,000 cellsSequencer implementation: madara-alliance/sequencer#1
Transaction rollover behavior
The devnet regression test submits five transactions with execution batches of two. Transactions 1–3 fit in block 1. Transaction 4 would take block 1 over its scaled test limit, so block 1 closes and transaction 4 is retried in block 2. Transaction 5 likewise moves to block 3. The persisted split is:
No transaction is lost, and the mempool drains.
Tests
cargo test -p blockifier snos_output -- --nocapture— 5 passedcargo test -p mc-block-production snos -- --nocapture— 2 passedcargo fmt --all -- --checkcargo metadata --locked --no-deps --format-version 1