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
Leo devnode is a lightweight-node network that bypasses the consensus algorithm and the requirement to generate proofs for deployment and execution transactions. It is a development tool intended for rapidly iterating on Aleo program design and running end-to-end tests prior to deploying Aleo programs to testnet and mainnet.
14
14
15
+
:::note
16
+
`leo devnode` is the recommended local development tool for lightweight testing. The older [`leo devnet`](./07_devnet.md) command (which requires a full snarkOS installation and spins up a multi-validator network) remains available for more complex testing scenarios.
17
+
:::
18
+
15
19
To initialize devnode, run the following command:
16
20
17
21
```bash
@@ -26,7 +30,7 @@ The default endpoint for a local devnode is `http://localhost:3030`.
26
30
27
31
<!-- markdown-link-check-enable -->
28
32
29
-
Press `Ctrl+C` to stop the devnode. If started with persistent storage (`-l`), the ledger state is saved and can be resumed by running `leo devnode start -l`again. If started without persistent storage, the ledger is discarded when the devnode exits.
33
+
Press `Ctrl+C` to stop the devnode. If started with `--ledger-path`, the ledger state is saved and can be resumed by running the same command again. If started without `--ledger-path`, the ledger is discarded when the devnode exits.
30
34
31
35
## `leo devnode start`
32
36
@@ -36,32 +40,27 @@ leo devnode start [OPTIONS]
36
40
37
41
| Flag | Short | Default | Description |
38
42
|------|-------|---------|-------------|
39
-
|`--private-key`|`-p`|| Private key (required, or set via environment variable) |
43
+
|`--private-key`||| Private key (required, or set via`PRIVATE_KEY` environment variable) |
0 commit comments