Skip to content

Commit c558f01

Browse files
committed
Fixing minor issue with devnet guide
1 parent f905ab5 commit c558f01

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

documentation/guides/07_devnet.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ A local devnet can be a heavyweight but reliable way to test your application on
1111

1212
The Leo CLI provides a helpful command to help startup a local devnet:
1313
```bash
14-
leo devnet --snarkos <SNARKOS>
14+
leo devnet --snarkos <SNARKOS> --snarkos-features test_network
1515
```
1616
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.
1717

1818
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>`.
1919
```bash
20-
leo devnet --snarkos <SNARKOS> --install
20+
leo devnet --snarkos <SNARKOS> --snarkos-features test_network --install
2121
```
2222
:::info
2323

@@ -35,7 +35,7 @@ Windows users will need to perform some additional steps in order for snarkOS to
3535

3636
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:
3737
```bash
38-
leo devnet --snarkos <SNARKOS> --tmux
38+
leo devnet --snarkos <SNARKOS> --snarkos-features test_network --tmux
3939
```
4040
:::info
4141
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
106106
```
107107
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:
108108
```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
110110
```
111111
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.
112112

113113
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:
114114
```bash
115-
leo devnet --snarkos <SNARKOS> --clear-storage
115+
leo devnet --snarkos <SNARKOS> --snarkos-features test_network --clear-storage
116116
```
117117
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.
118118

0 commit comments

Comments
 (0)