v2.4
Key Information | Details |
---|---|
Version | Conflux v2.4.0 |
Hardfork Introduced | Yes |
Incompatible Changes | Yes (CIP-130, CIP-131, CIP-132, CIP-133, CIP-136, CIP-137, CIP-141, CIP-142, CIP-143, CIP-144, CIP-145, and CIP-1559) |
Introduction
Conflux v2.4.0 is a hardfork introducing incompatible protocol changes including transaction fee changes, bug fixes, EVM Opcode changes
Upgrade Overview
- Transaction fee model changes (CIP-1559 and CIP-137) (Check base fee for the detailed explanation)
- The concept "base fee per gas" and relating mechanisms are introduced.
- Part of the base fee will be paid to miner, which ratio is determined by on-chain DAO vote with initial ratio set to 0.5.
- New transaction formats supported
- Core Space: A Conflux verison Typed Transaction Envelope is implemented in the format of
b'cfx' || TransactionType || TransactionPayload
- Core Space: Type-1 transaction (Optional access list) FORMAT is defined and supported. Note: Conflux only provides limited support for access list field, resulting in solely format support without actual gas deduction.
- Core Space: Type-2 transaction (dynamic fee) is defined and supported. Similar to EIP-1559, the type-2 transactions have field
maxFeePerGas
andmaxPriorityFeePerGas
in substitute ofgasPrice
field. - eSpace: Typed Transaction Envelope is supported.
- eSpace: Type-1 transaction (EIP-2930: Optional access lists) FORMAT is supported. Note: Conflux only provides limited support for access list field, resulting in solely format support without actual gas deduction.
- eSpace: Type-2 transaction format defined by EIP-1559 is supported.
- Core Space: A Conflux verison Typed Transaction Envelope is implemented in the format of
- Block gas limit changes:
- The block gas limit doubles from previous
30,000,000
to60,000,000
. - The mechanism of how core space and espace share the block gas limit changes (Check spaces): previously, the espace block will occupy core space block gas limit on specific heights, while after the hardfork, the core space and espace will have divided block gas limit budget.
- The meaning of the block gas limit changes (got via
cfx_getBlockByHash
or other block query rpcs). It does not present the value of core space or espace block gas limit but derives them, with core space gas block limit calculated as0.9 * block_gas_limit
and espace block gas limit calculated as0.5 * block_gas_limit
.
- The block gas limit doubles from previous
- RPC Changes
- Transaction Query RPCs (
cfx_getTransactionByHash
,eth_getTransactionByHash
, etc): New fieldstype
- Transaction Receipt Query RPCs (
cfx_getTransactionByHash
,eth_getTransactionByHash
, etc):New fieldstype
,effectiveGasPrice
,burntGasFee
(NOTE: this fields is also added for espace transaction receipts) eth_sendTransaction
: New supported params:type
,accessList
,maxPriorityPerGas
,maxFeePerGas
cfx_getParamsFromVote
: New return fieldbaseFeeShareProp
- New RPCs
cfx_maxPriorityFeePerGas
,eth_maxPriorityFeePerGas
cfx_feeHistory
,eth_feeHistory
cfx_getFeeBurnt
- Transaction Query RPCs (
- VM opcode changes
- Enhances
BLOCKHASH
opcode capability. - Disables
BEGIN_SUB (0x5c)
,RETURN_SUB (0x5d)
, andJUMP_SUB (0x5e)
(CIP-141). - Introduces
BASEFEE(0x48)
,MCOPY (0x5e)
,TLOAD(0x5C)
andTSTORE(0x5D)
.
- Enhances
- New precompile contracts(CIP-144)
- Bug fixes