v2.3
关键信息 | 详细信息 |
---|---|
版本 | Conflux v2.3.0 |
是否引入硬分叉 | 是 |
Incompatible Changes | 是(CIP-107, CIP-112, CIP-113, CIP-118, CIP-119) |
简介
Conflux v2.3.0 引入了一个新的硬分叉,其中包括不兼容性的变更和几项 RPC 改进。
Incompatible Changes
CIP-107
CIP-107, the major change of the hard fork, introduces "storage point", a burning mechanism of storage collateral. 当赞助 商为合约添加存储抵押时,一部分 CFX 代币将被燃烧,相应数量的“存储点”将被铸造。 "存储点"不能进行转移,不产生存储利息,但可以像 CFX 代币一样支付存储抵押。 这是为了引入一些燃烧场景和机制,以减缓 CFX 代币的持续通货膨胀,从而改善 Conflux 的代币经济学。
相应的变更
- RPC 变更:
- Add a new RPC
cfx_getCollateralInfo
to return chain collateral info. cfx_getSponsorInfo
returns 2 extra fields:usedStoragePoints
andavailableStoragePoints
.
- Add a new RPC
- Internal contract
SponsorWhitelistControl
changes- new interfaces:
getAvailbaleStoragePoints
(introduced by CIP-118) - 抵押赞助替换的阈值变更
- previous:
tx.value > sponsor_balance_for_collateral + collateral_for_storage
- current:
tx.value > sponsor_balance_for_collateral + (collateral_for_storage - used_storage_points / 1024)
- previous:
- CIP-107 之前赞助的抵押燃烧:
- p(defined by CIP-107, started at 0.5) proportion of
sponsor_balance_for_collateral + collateral_for_storage
will be burnt and converted to storage points. 这种转换会轻而易举的实现。
- p(defined by CIP-107, started at 0.5) proportion of
- new interfaces:
- DAO 投票变更
- new vote option to change
STORAGE_POINT_PORP
that defines burn ratio p (STORAGE_POINT_PORP / (STORAGE_POINT_PORP + 1)
)
- new vote option to change
更多细节请参考原始的 CIP-107 文档。