You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/core/core-space-basics/accounts.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ A Conflux account state includes five parts:
69
69
-```Basic state``` is the basic state of the account.
70
70
-```Storage state``` is a key/value database or storage space that can be used to store custom states or data of smart contracts.
71
71
-```Code information``` is the code information of the smart contract account. It includes the contract codes and the ```address``` of the account that paid the fee for the storage space occupied by the codes.
72
-
-```Staking deposit list``` is the list of Staking operations of the accounts (it will be removed in the next Hardfork).
72
+
-```Staking deposit list``` is the list of Staking operations of the accounts (it is removed from the v2.4.0 Hardfork).
73
73
-```Staking vote lock list``` is the list of lock operations performed by the account to participate in DAO voting.
74
74
75
75
The basic status of the account consists of eight fields as follows:
Copy file name to clipboardexpand all lines: docs/core/core-space-basics/vm-difference.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -33,13 +33,13 @@ The 1820 registry is a contract that stores the addresses of other contracts tha
33
33
34
34
## Opcode
35
35
36
-
* The `BLOCKHASH` opcode can only take `NUMBER-1` as input. (Unlike Ethereum, which takes any integer in `NUMBER-256` to `NUMBER-1` as input). This is the **only break opcode**.
36
+
Before v2.4.0 the `BLOCKHASH` opcode can only take `NUMBER-1` as input. (Unlike Ethereum, which takes any integer in `NUMBER-256` to `NUMBER-1` as input). Which means the Solidity built-in function `blockhash` can only take `block.number - 1` as input.
37
37
38
-
Which means the Solidity built-in function `blockhash` can only take `block.number - 1` as input.
38
+
After v2.4.0 it is fully compatible with Ethereum with an advanced input range up to 65536 blocks (implemented by [CIP-133](https://github.com/Conflux-Chain/CIPs/blob/master/CIPs/cip-133.md)).
39
39
40
40
## Block Gas Limit
41
41
42
-
The block gas limit is fixed at 30000000.
42
+
The block gas limit is 30 million before v2.4.0 and 60 million gas after v2.4.0.
43
43
44
44
## block.number
45
45
@@ -52,4 +52,4 @@ Core Space has some built-in [internal contracts](./internal-contracts/) that ar
52
52
## Gas
53
53
54
54
1. Gas used and refund: Conflux requires less gas in `SSTORE` operation but no longer refunds resetting storage and contract destruction.
55
-
2. Gas Fee Refund: In Ethereum, if a transaction's gas limit exceeds the actual gas cost, the remaining gas is fully refunded. In contrast, Conflux refunds a maximum of 1/4 of the **gas limit**. Setting an excessively high gas limit in Conflux can lead to additional transaction fee costs. However, no extra fees are incurred if the gas limit is set to less than 4/3 of the actual cost. Therefore, providing an accurate gas estimate for a transaction is crucial for optimizing transaction fees.
55
+
2. Gas Fee Refund: In Ethereum, if a transaction's gas limit exceeds the actual gas cost, the remaining gas is fully refunded. In contrast, Conflux refunds a **maximum of 1/4** of the **gas limit**. Setting an excessively high gas limit in Conflux can lead to additional transaction fee costs. However, no extra fees are incurred if the gas limit is set to less than 4/3 of the actual cost. Therefore, providing an accurate gas estimate for a transaction is crucial for optimizing transaction fees.
Copy file name to clipboardexpand all lines: docs/espace/build/evm-compatibility.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ Contract max code size is `49152` double as Ethereum
69
69
70
70
## Transaction Gas limit
71
71
72
-
Only the block whose block height is a multiple of `5` can pack Ethereumtype transaction. The total gas limit of these transaction cannot exceed half of the block gas limit (15,000,000).
72
+
Only blocks whose height is a multiple of `5` can include Ethereum-type transactions. The total gas limit of these transactions cannot exceed half of the block gas limit, which is 15 million gas before v2.4.0 and 30 million gas after v2.4.0.
73
73
74
74
## EVM Precompiles
75
75
@@ -79,15 +79,15 @@ All standard precompiles are supported.
0 commit comments