Skip to content

Commit 0d894b6

Browse files
committed
update outdated content
1 parent b0580a5 commit 0d894b6

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

docs/core/core-space-basics/accounts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ A Conflux account state includes five parts:
6969
- ```Basic state``` is the basic state of the account.
7070
- ```Storage state``` is a key/value database or storage space that can be used to store custom states or data of smart contracts.
7171
- ```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).
7373
- ```Staking vote lock list``` is the list of lock operations performed by the account to participate in DAO voting.
7474

7575
The basic status of the account consists of eight fields as follows:

docs/core/core-space-basics/vm-difference.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ The 1820 registry is a contract that stores the addresses of other contracts tha
3333

3434
## Opcode
3535

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.
3737

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)).
3939

4040
## Block Gas Limit
4141

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.
4343

4444
## block.number
4545

@@ -52,4 +52,4 @@ Core Space has some built-in [internal contracts](./internal-contracts/) that ar
5252
## Gas
5353

5454
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.

docs/espace/build/evm-compatibility.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Contract max code size is `49152` double as Ethereum
6969

7070
## Transaction Gas limit
7171

72-
Only the block whose block height is a multiple of `5` can pack Ethereum type 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.
7373

7474
## EVM Precompiles
7575

@@ -79,15 +79,15 @@ All standard precompiles are supported.
7979

8080
Address | ID | Name | Spec | Status | Version
8181
------- | ----------- | ------------------------------------ | -------------- | ------ |------
82-
0x01 | `ECRecover` | ECDSA public key recovery | [Yellow Paper] | ✅ |
83-
0x02 | `SHA256` | SHA-2 256-bit hash function | [Yellow Paper] | ✅ |
84-
0x03 | `RIPEMD160` | RIPEMD 160-bit hash function | [Yellow Paper] | ✅ |
85-
0x04 | `Identity` | Identity function | [Yellow Paper] | ✅ |
86-
0x05 | `ModExp` | Big integer modular exponentiation | [EIP-198] | ✅ |
87-
0x06 | `BN128Add` | Elliptic curve addition | [EIP-196] | ✅ |
88-
0x07 | `BN128Mul` | Elliptic curve scalar multiplication | [EIP-196] | ✅ |
89-
0x08 | `BN128Pair` | Elliptic curve pairing check | [EIP-197] | ✅ |
90-
0x09 | `Blake2F` | BLAKE2b `F` compression function | [EIP-152] | ✅ |
82+
0x01 | `ECRecover` | ECDSA public key recovery | [Yellow Paper] | ✅ |
83+
0x02 | `SHA256` | SHA-2 256-bit hash function | [Yellow Paper] | ✅ |
84+
0x03 | `RIPEMD160` | RIPEMD 160-bit hash function | [Yellow Paper] | ✅ |
85+
0x04 | `Identity` | Identity function | [Yellow Paper] | ✅ |
86+
0x05 | `ModExp` | Big integer modular exponentiation | [EIP-198] | ✅ |
87+
0x06 | `BN128Add` | Elliptic curve addition | [EIP-196] | ✅ |
88+
0x07 | `BN128Mul` | Elliptic curve scalar multiplication | [EIP-196] | ✅ |
89+
0x08 | `BN128Pair` | Elliptic curve pairing check | [EIP-197] | ✅ |
90+
0x09 | `Blake2F` | BLAKE2b `F` compression function | [EIP-152] | ✅ |
9191
0x0a | `PointEvaluation`| Verify p(z) = y given commitment that corresponds to the polynomial p(x) and a KZG proof| [EIP-4844] | ✅ | V2.4.0
9292

9393
[Yellow Paper]: https://ethereum.github.io/yellowpaper/paper.pdf

docs/espace/build/jsonrpc-compatibility.md

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ import TabItem from '@theme/TabItem';
7878
| debug_traceTransaction || Supported at v2.4.0 |
7979
| debug_traceBlockByHash || Supported at v2.4.0 |
8080
| debug_traceBlockByNumber || Supported at v2.4.0 |
81+
| debug_traceCall || Supported at v2.4.1 |
8182
| net_listening || |
8283
| net_peerCount || |
8384
| eth_compileLLL || |

0 commit comments

Comments
 (0)