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: documentation/guides/07_devnet.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,13 @@ A local devnet can be a heavyweight but reliable way to test your application on
11
11
12
12
The Leo CLI provides a helpful command to help startup a local devnet:
13
13
```bash
14
-
leo devnet --snarkos <SNARKOS>
14
+
leo devnet --snarkos <SNARKOS> --snarkos-features test_network
15
15
```
16
16
The `<SNARKOS>` is the path to an installed binary of [**snarkOS**](https://github.com/ProvableHQ/snarkOS), the decentralized operating system that forms the backbone of the Aleo network.
17
17
18
18
If you don't have snarkOS installed, you can pass the `--install` flag and the CLI will automatically download, compile, and store the binary at the path specified by `<SNARKOS>`.
19
19
```bash
20
-
leo devnet --snarkos <SNARKOS> --install
20
+
leo devnet --snarkos <SNARKOS> --snarkos-features test_network --install
21
21
```
22
22
:::info
23
23
@@ -35,7 +35,7 @@ Windows users will need to perform some additional steps in order for snarkOS to
35
35
36
36
The `tmux` command will allow you to toggle between nodes in your local devnet. You can enable this by passing the `--tmux` flag upon startup:
37
37
```bash
38
-
leo devnet --snarkos <SNARKOS> --tmux
38
+
leo devnet --snarkos <SNARKOS> --snarkos-features test_network --tmux
39
39
```
40
40
:::info
41
41
This feature is only available on Unix-based systems.
@@ -106,13 +106,13 @@ The height of the chain will increase as blocks are produced. At various differ
106
106
```
107
107
Obviously you don't have time to wait for 10 million blocks to access a newer feature like program upgradability, so `leo devnet` provides a way to manually set the consensus heights via the `--consensus-heights` flag:
108
108
```bash
109
-
leo devnet --snarkos <SNARKOS> --consensus-heights 0,1,2,3,4,5,6,7,8,9,10
109
+
leo devnet --snarkos <SNARKOS> --snarkos-features test_network --consensus-heights 0,1,2,3,4,5,6,7,8,9,10
110
110
```
111
111
Note that if you want to access the latest features, the number of comma-separated arguments you pass to this flag must be exactly equal to the latest consensus version.
112
112
113
113
Each time you stop and restart the chain, the prior state and history will be saved. You can clear any prior history by passing the `--clear-storage` flag:
114
114
```bash
115
-
leo devnet --snarkos <SNARKOS> --clear-storage
115
+
leo devnet --snarkos <SNARKOS> --snarkos-features test_network --clear-storage
116
116
```
117
117
Clearing the ledger history may be useful if you wish to redeploy your program without changing the name. However, this will erase all transaction history and start a new instance of the Aleo blockchain from genesis.
0 commit comments