ethereum/EIPs-607 Hardfork Meta: Spurious Dragon硬分叉相关

本文详细介绍了以太坊SpuriousDragon硬分叉的主要变化,包括防止交易重播攻击(EIP155),提高EXP操作码成本(EIP160),清理状态树(EIP161),限制智能合约代码大小(EIP170)。这些更新增强了网络安全性,提升了性能,并减少了区块链状态大小。
eiptitleauthortypestatuscreatedrequires
607
Hardfork Meta: Spurious Dragon
Alex Beregszaszi
Meta
Final
2017-04-23
155, 160, 161, 170

Abstract

This specifies the changes included in the hard fork named Spurious Dragon.

Specification

  • Codename: Spurious Dragon
  • Aliases: State-clearing
  • Activation:(发生时间2016,11,22)
    • Block >= 2,675,000 on Mainnet(主网在区块2,675,000后进行分叉)
    • Block >= 1,885,000 on Morden(Morden测试网络在区块进行1,885,000后进行分叉)
  • Included EIPs:
  • EIP 155: Replay attack protection - prevents transactions from one Ethereum chain from being rebroadcasted on an alternative chain. For example: If you send 150 test ether to someone from the Morden testnet, that same transaction cannot be replayed on the main Ethereum chain. Important note: EIP 155 is backwards compatible, so transactions generated with the "pre-Spurious-Dragon" format will still be accepted. However, to ensure you are protected against replay attacks, you will still need to use a wallet solution that implements EIP 155. Be aware that this backwards compatibility also means that transactions created from alternative Ethereum based blockchains that have not implemented EIP 155 (such as Ethereum Classic) can still be replayed on the main Ethereum chain.
  • EIP 160: EXP cost increase - adjusts the price of `EXP` opcode so it balances the price of `EXP` with the computational complexity of the operation, essentially making it more difficult to slow down the network via computationally expensive contract operations.
  • EIP 161: State trie clearing - makes it possible to remove a large number of empty accounts that were put in the state at very low cost as a result of earlier DoS attacks. With this EIP, 'empty' accounts are removed from the state whenever 'touched' by another transaction. Removal of the empty accounts greatly reduces blockchain state size, which will provide client optimizations such as faster sync times. The actual removal process will begin after the fork by systematically performing `CALL` to the empty accounts that were created by the attacks.
  • EIP 170: Contract code size limit - changes the maximum code size that a contract on the blockchain can have. This update prevents an attack scenario where large pieces of account code can be accessed repeatedly at a fixed gas cost. The maximum size has been set to 24576 bytes, which is larger than any currently deployed contract.

References

  1. https://blog.ethereum.org/2016/11/18/hard-fork-no-4-spurious-dragon/

转载于:https://www.cnblogs.com/wanghui-garcia/p/9648144.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值