Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
baichuan3 committed May 22, 2024
1 parent 3e5e461 commit b69a5fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions crates/rooch/src/commands/indexer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A tool to handle rooch indexer.
1. rooch indexer rebuild

```shell
rooch indexer rebuild --input ~/utxo.txt -d ~/.rooch -n main
rooch indexer rebuild --input ~/indexer.csv -d ~/.rooch -n main
```

Step 1, cleanup database files
Expand All @@ -28,10 +28,16 @@ Step 3, stop server
kill {server pid} or Ctrl-C
```

Step 4 run indexer genesis-utxo command
Step 4, export indexer data

```shell
rooch indexer genesis-utxo --input {your utxo file} -d {your rooch data dir} -n main
rooch statedb export --output {your file} -d {your rooch data dir} -n main -m 3
```

Step 5 run indexer rebuild command

```shell
rooch indexer rebuild --input {your indexer file} -d {your rooch data dir} -n main
```

### Config
Expand Down
4 changes: 2 additions & 2 deletions crates/rooch/src/commands/statedb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ rooch statedb genesis-utxo --input {your utxo file} -d {your rooch data dir} -n
2. rooch statedb export

```shell
todo!
rooch statedb export --output {your file} -d {your rooch data dir} -n main -m {export mode}
```

3. rooch statedb import

```shell
todo!
rooch statedb statedb --input {your file} -d {your rooch data dir} -n main
```

### Config
Expand Down

0 comments on commit b69a5fa

Please sign in to comment.