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
dump Dump eSpace account state at a given block number
20
+
rpc RPC based subcommands to query blockchain information and send transactions
21
+
help Print this message or the help of the given subcommand(s)
32
22
33
-
SUBCOMMANDS:
34
-
account Manage accounts
35
-
help Prints this message or the help of the given subcommand(s)
36
-
rpc RPC based subcommands to query blockchain information and send transactions
23
+
Options:
24
+
--mode <MODE>
25
+
Use the preset testing configurations. dev or test
26
+
-p, --port <PORT>
27
+
Specify the port for P2P connections
28
+
...
37
29
```
38
30
39
31
Each command-line tool comes with its own help information. Users can view the help message by using the -h or --help flag.
@@ -57,4 +49,46 @@ SUBCOMMANDS:
57
49
import Import accounts from JSON UTC keystore files to the specified --chain (default conflux)
58
50
list List existing accounts of the given --chain (default conflux).
59
51
new Create a new account (and its associated key) for the given --chain (default conflux).
60
-
```
52
+
```
53
+
54
+
## dump subcommand
55
+
56
+
This command can be used to export all account states at a certain block height in eSpace to JSON files, facilitating development and debugging. The exported data structure example is as follows
57
+
58
+
```sh
59
+
$ ./conflux --config devnode.toml dump --block 1000 # export state at height 1000
1. Conflux contract data storage differs significantly from Ethereum, as it is not stored in separate MPT form, therefore the storage root cannot be obtained. The exported data's `account.root` is fixed as `0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421`
91
+
2. The exported root information is the full state root of Conflux dual-space (Core Space, eSpace), only for maintaining data format consistency, not the state root of all eSpace accounts.
92
+
3. When exporting mainnet state data, due to the large number of accounts, high machine configuration is required, and the runtime will be quite long; if you want to export the state at a certain height in history, it needs to be performed on a fullstate node data.
93
+
4. When performing state export, please stop the node program first, then execute the export operation in the node directory.
94
+
5. Please use the binary corresponding to the network and execute the export operation in the corresponding network data directory; do not use testnet or master code compiled binary to execute export operations on mainnet data.
0 commit comments