⚠️ Draft
    
    
    
      Standards Track: Core
    
  
  
    
      EIP-7703: 增加 calldata 成本
    
    
      
  
    
      
  
  
  
  
      
    
      EIP-7703: 增加 calldata 成本
    
    
      
        
       
    
    
      
        
       
    
  
  增加 calldata 成本以减小最大区块大小
| Authors | William Morriss (@wjmelements) | 
|---|---|
| Created | 2024-05-07 | 
| Discussion Link | https://ethereum-magicians.org/t/eip-7703-increase-calldata-cost/19933 | 
摘要
调整以太坊 calldata 成本,以减小最大可能的区块大小,并允许更高的区块 gas 限制。
动机
更大的区块需要更长的时间才能在网络中传播。 таким образом, 最大潜在区块大小限制了区块 gas 限制。 因此,为了安全地增加区块 gas 限制,必须增加 calldata gas。
规范
- 将 
G_CALLDATAZERO从 4 增加到 12。 - 将 
G_CALLDATANONZERO从 16 增加到 48。 
理论依据
将 calldata 的 gas 成本增加三倍,可将最大可能的区块大小减少三倍。
向后兼容性
激活可能会导致某些交易因 gas 成本增加而回滚。
在激活之前,可以使用新参数计算 eth_estimateGas,以便提供适用于激活的结果,从而避免 out-of-gas 回滚。
安全注意事项
尚未发现任何安全问题。
版权
在 CC0 下放弃版权及相关权利。
Citation
Please cite this document as:
William Morriss (@wjmelements), "EIP-7703: 增加 calldata 成本 [DRAFT]," Ethereum Improvement Proposals, no. 7703, May 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7703.