main ← claude/bold-carson-hm3fsu
opened 10:30PM - 28 Oct 26 UTC
## Summary
Adds a draft CIP, `cips/cip-draft_block_gas_limit.md`, that targets …the v11 network upgrade. It adds a block validity rule: the gas limits declared by non-blob, non-PayForFibre transactions in a block must sum to at most `MaxSDKGas` = 100,000,000.
### What the CIP covers
- **Motivation:** today's per-block limits bound bytes and message counts but not execution work, and `ConsensusParams.Block.MaxGas` is -1.
- A gas limit is a general backstop against gas-metered work that grows with input, including vulnerabilities not yet found.
- It complements targeted per-message limits rather than replacing them.
- **Why not `ConsensusParams.Block.MaxGas`:** the SDK block gas meter semantics, building on CIP-11 and CIP-52.
- **Specification:** ProcessProposal rejects over-limit blocks, PrepareProposal skips txs that don't fit, and CheckTx rejects a tx whose gas limit alone exceeds the cap. The sum is checked without overflow.
- **Rationale:**
- The cap applies to declared gas.
- Blob and PayForFibre txs are excluded because blob gas mostly pays for bytes.
- The value comes from an execution budget of about 0.27–0.5 s.
- A 3,500-block mainnet sample shows the busiest block declaring 3.3M non-blob gas, about 3% of the limit.
- **Security considerations:** how much protection gas pricing gives, proposer behavior, overflow, and block space contention.
Reference implementation: https://github.com/celestiaorg/celestia-app/pull/8399
`discussions-to` is still TBA; it can point at this PR or a forum thread.
### Validation
- `markdownlint --config .markdownlint.yaml` passes on the new file.
- `mdbook build` was not run because mdbook is not installed in this environment. `SUMMARY.md` and `README.md` are unchanged because the CIP is not numbered yet.
---
_Generated by [Claude Code](https://claude.ai/code/session_01K7RNxaXQApsUccYviFnrLK)_