Homestead(家园)
⏭ Related EIP
EIP-2: Homestead Hard-fork Changes
EIP-7: DELEGATECALL
EIP-8: devp2p Forward Compatibility Requirements for Homestead
遇到的问题
翻译者
0xmiracle
状态
✅
🇨🇳 Related EIP - CN version
EIP-606:硬分叉修改提案:Homestead
⏳ Phases
⏰ Releasing Block
1,150,000
翻译文档链接
testnet
🤔 Impact
First, it removed the canary contract functionality, removing that point of centralization on the network. Second, it introduced new codes in Solidity, the programming language used on Ethereum. Last, it introduced the Mist wallet, which allowed users to hold/transact ETH and write/deploy smart contracts.
The Homestead upgrade was one of the earliest implementations of Ethereum Improvement Proposals. EIPs are recommendations made to the community that then, if approved, are included in network upgrades. The Homestead upgrade included three
EIPs:
EIP-2: Main Homestead upgrades
EIP 2.1: Increased the cost for creating smart contracts via a transaction from 21,000 gas to 53,000 gas. The cost to create a contract via another contract — the preferred method — had cost more than creating it via a transaction. By increasing the gas cost to create contracts via transactions, EIP 2.1 incentivized users to return to creating contracts via other contracts.
EIP 2.2: “All transaction signatures whose s-value is greater than secp256k1n/2 considered invalid. The ECDSA recover precompiled contract remained unchanged and kept accepting high s-values; this is useful e.g. if a contract recovers old Bitcoin signatures.” [source]
EIP 2.3: Dictated that if a contract did not have enough gas to complete the operation, the contract would “fail” rather than create an empty contract. This changed the possible outputs of a transaction from [success] [fail] or [empty] to just [success] or [fail].
EIP 2.4: Eliminated an incentive that allowed users to create blocks with slightly higher difficulty — i.e. blocks that would be more likely to be mined. This upgrade stabilized block times between 10–20 seconds and restored the network to its overall target time of ~15 seconds per block.
EIP-7
“Adds a new opcode, DELEGATECALL at 0xf4, which is similar in idea to CALLCODE, except that it propagates the sender and value from the parent scope to the child scope, ie. the call created has the same sender and value as the original call.” [source]
EIP-8: Future Upgrades
EIP-8 was an Improvement Proposal with an eye towards future, planned network upgrades. The improvement ensured all client software on Ethereum could accommodate future network protocol updates.
📆 Releasing date
2016-03-15
🔗 reference
All core dev meeting
🇨🇳 Impact - CN version
Homestead 升级主要包括对以太坊的三大重要改进措施。首先,它移除了 Canary 合约,去除了网络中的中心化部分。其次,它在以太坊的合约编程语言 Solidity 中引入了新代码。最后,它引入了 Mist 钱包,让用户能持有/交易 ETH 并编写/ 部署智能合约。
EIP-2:Homestead 核心升级
EIP 2.1:将通过交易创建智能合约的成本从 21000 Gas 提高到 53000 Gas。之前,通过合约来创建合约(首选办法)的成本比通过交易创建合约的成本更高。由于通过交易创建合约的 gas 成本提高,EIP 2.1 激励用户重新采用通过合约来创建合约的方法。
EIP 2.2:“所有 s 值大于 secp256k1n/2 的交易签名被视为无效。ECDSA 恢复预编译合约保持不变并接受较高的 s 值;在有合约需要恢复旧的比特币签名之类的情况下,这一功能就派上用场了。” [来源]
EIP 2.3:明确规定了,如果一个合约没有收到足够的 Gas 来完成整个操作过程,合约创建将 会“失败”,而非创建一个空白合约,使得交易可能的输出结果由原来的 [成功]、[失败] 或 [空] 变为 [成功] 或 [失败]。
EIP 2.4:取消了对用户创建难度值较高的区块的激励,从而增加挖到区块的概率。这一升级将出块时间稳定在 10 秒到 20 秒,并将整个网络恢复到大约 15 秒的目标出块时间。
EIP-7
“在 0xf4 中新增了一个操作码,DELEGATECALL。该操作码与 CALLCODE 类似,不同之处在于它将发送方和数值从父作用域发送到子作用域,也就是说,被创建的调用与原始调用拥有相同的发送方和数值。”[来源]
EIP-8:面向未来的升级
EIP-8 是一项着眼于未来的网络升级计划改进提案。这一改进确保以太坊网络上所有的客户端软件都能适应未来的网络协议升级。