{
  "id": 7778,
  "title": "EIP-7778: Block Gas Accounting without Refunds",
  "status": "Draft",
  "type": "Standards Track",
  "category": "Core",
  "summary": "Closes a loophole where gas refunds let blocks pack extra work. Refunds still reduce user costs, but don't shrink the block's counted gas. Aligns block size with real EVM work and reduces worst-case block-size variance.",
  "impacts": [
    "No substantial direct impact; transactions execute as before. Refunds still discount user costs but no longer shrink counted block gas.",
    "Contracts generally unchanged. Only strategies exploiting large refunds lose ability to help pack extra computation into blocks via accounting quirks.",
    "No changes required. Gas estimation, fee math, and refund display remain the same at the transaction level for users today.",
    "Block builders, simulators, and analyzers should enforce and reflect gross block-gas accounting; update tests and dashboards to avoid refund-based variance.",
    "Minimal direct impact. Sequencers mirroring L1 semantics may adopt same accounting; otherwise, no changes to rollup fee or capacity models.",
    "Lower variance in execution work per block improves predictability and reduces pathological worst-case loads; efficiency gains from smoother resource usage.",
    "No consensus-layer changes expected; negligible impact beyond observing more consistent block execution times on the execution layer during validation overhead.",
    "Must implement block accounting change and tests; ensure refunds don't reduce block-gas used. Otherwise limited complexity and compatibility concerns overall.",
    "Aligns block gas with actual EVM work.",
    "Prevents refund-based circumvention of block limits.",
    "Reduces worst-case block size variance.",
    "Improves node execution predictability and safety."
  ],
  "discussion_url": "https://ethereum-magicians.org/t/eip-7778-prevent-block-gas-smuggling/21234",
  "source_markdown_url": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7778.md",
  "canonical_url": "/latest/eips/7778.json",
  "markdown_url": "/latest/eips/7778.md",
  "citations": [
    {
      "recordId": "eip-7778",
      "artifactPath": "normalized/7778.json",
      "url": "/records/proposal/eip-7778/normalized/7778.json",
      "label": "EIP-7778: Block Gas Accounting without Refunds",
      "snippet": "Closes a loophole where gas refunds let blocks pack extra work. Refunds still reduce user costs, but don't shrink the block's counted gas. Aligns block size with real EVM work and reduces worst-case block-size variance."
    }
  ]
}
