v2.0 版本更新
在 Hydra 硬分叉(v2.0 版本)中,Conflux 将通过 8 个 CIP(Conflux 改进提案)引入几项重大升级。
PoS 共识机制
Through CIP-43 Hydra has introduced a PoS system to improve the finality of the whole Network. CFX 持有者可以将其 CFX 质押到 PoS,以保护高价值交易,并且还可以通过参与 PoS 获得 CFX 奖励。 For detail information, check PoS Overview page.
Conflux eSpace
CIP-90 引入了一个全新的完全兼容 EVM 的空间。 这个新的空间被称为 eSpace,当前空间被称为 Core Space。 eSpace 遵循与 EVM 相同的规则,并支持 eth rpc,如 eth_getBalance,因此以太坊生态系统中的工具(web3.js, ethers.js, hardhat 等)可以直接在 Conflux 中使用。 Check eSpace documentation for more info.
新增的内部合约
Hydra hardfork has intoduced three new InternalContracts:
ConfluxContext
(CIP-64)PoSRegister
(CIP-43)CrossSpaceCall
(CIP-90)
RPC 变更
cfx 命名空间 RPC 变更
- New added methods:
cfx_getPoSRewardByEpoch
,cfx_openedMethodGroups
,cfx_getPoSEconomics
. - New added EpochNumber tag:
latest_finalized
indicating latest finalized (by PoS) epoch. cfx_getStatus
reponse have two new field:latestFinalized
,ethereumSpaceChainId
- Block header new added field:
posReference
which is the latest pos blockHash when the PoW block is mined. - Block header's
custom
field's type has changed from array ofnumber array
to array ofhex string
.
// before
custom: [[1, 2]]
// after
custom: ["0x12"]
Note: CIP-90 will break some block field's verifiability for example: hash
trace RPC breaking change
trace
RPC methods have some big changes