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
{{ message }}
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: guides/reset-state.md
+35-21Lines changed: 35 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,37 +18,59 @@ In order to complete this guide, you will need to have completed either the [qui
18
18
19
19
## Quick Start
20
20
21
-
When you run your chain with `rollkit start` you will create a `.rollkit` directory in your root directory.
21
+
When you run your chain with `testapp start` you will create a `.testapp` directory in your root directory.
22
22
23
23
This directory will look like the following.
24
24
25
25
```bash
26
-
tree $HOME/.rollkit
26
+
tree $HOME/.testapp
27
27
28
28
├── config
29
-
│ ├── config.toml
30
29
│ ├── genesis.json
31
30
│ ├── node_key.json
32
-
│ └── priv_validator_key.json
31
+
│ ├── rollkit.yaml
32
+
│ └── signer.json
33
33
└── data
34
-
├── priv_validator_state.json
35
-
└── rollkit
34
+
├── cache
35
+
│ ├── data
36
+
│ │ ├── da_included.gob
37
+
│ │ ├── hashes.gob
38
+
│ │ ├── items_by_hash.gob
39
+
│ │ └── items_by_height.gob
40
+
│ └── header
41
+
│ ├── da_included.gob
42
+
│ ├── hashes.gob
43
+
│ ├── items_by_hash.gob
44
+
│ └── items_by_height.gob
45
+
├── executor
46
+
│ ├── 000001.sst
47
+
│ ├── 000002.vlog
48
+
│ ├── 000003.vlog
49
+
│ ├── 00003.mem
50
+
│ ├── DISCARD
51
+
│ ├── KEYREGISTRY
52
+
│ ├── LOCK
53
+
│ └── MANIFEST
54
+
└── testapp
36
55
├── 000001.sst
37
-
├── 000001.vlog
38
56
├── 000002.sst
39
57
├── 000002.vlog
58
+
├── 000003.sst
59
+
├── 000003.vlog
40
60
├── DISCARD
41
61
├── KEYREGISTRY
42
62
└── MANIFEST
43
63
```
44
64
45
-
To reset the state of the chain, delete the entire `.rollkit` directory.
65
+
To reset the state of the chain, delete the content of the `data` directory.
66
+
67
+
Alternatively, you can use this command.
46
68
47
69
```bash
48
-
${BINARY} unsafe-clean
70
+
testapp unsafe-clean
49
71
```
50
72
51
-
When you launch your chain again with `rollkit start` your `.rollkit` directory will be re-created and you will see your chain starting at block height 1 again.
73
+
When you launch your chain again with `testapp start` your `data` directory will be re-populated and you will see your chain starting at block height 1 again.
The directories you need to delete to reset your state are in the `./data` directory.
118
-
119
-
```bash
120
-
$HOME/.gm/data/application.db
121
-
$HOME/.gm/data/rollkit
122
-
$HOME/.gm/data/snapshots
123
-
$HOME/.gm/data/cache
124
-
125
-
```
139
+
The directories you need to delete to reset your state are in the `data` directory.
126
140
127
-
You can delete them with the following command:
141
+
Alternatively, you can run the following command to delete the data directories:
128
142
129
143
```bash
130
-
gmd tendermint unsafe-reset-all
144
+
gmd comet unsafe-reset-all
131
145
```
132
146
133
147
When you launch your chain again with your `gmd start <flags>` command, these data directories will be re-created and you will see your chain starting at block height 1 again.
It is important to include any additional flags that you used when you first started your rollup. For example, if you used the `--rollkit.da_namespace` flag, you will need to include that flag when restarting your rollup to ensure your rollup continues to publish blobs to the same namespace.
42
+
It is important to include any additional flags that you used when you first started your rollup. For example, if you used the `--rollkit.da.namespace` flag, you will need to include that flag when restarting your rollup to ensure your rollup continues to publish blobs to the same namespace.
0 commit comments