Skip to content

Commit

Permalink
Merge branch 'harri/local-network-docs' #(367)
Browse files Browse the repository at this point in the history
Add base dir callout for local network
  • Loading branch information
brentstone authored Jul 18, 2024
2 parents a2c2905 + 61ada93 commit ef99f0a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/docs/pages/operators/networks/local-network.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Expandable from "../../../components/Expandable";
import { Callout } from "nextra-theme-docs";

# Spinning up a local network

Expand Down Expand Up @@ -72,6 +73,18 @@ The ledger can be run through the familiar command:
./target/release/namada ledger # Assuming the binaries were built using `make build-release`
```

<Callout>
If you receive the error `Failed to construct Namada chain context...`, then you need to set the variable `NAMADA_BASE_DIR`. For example:

```shell
export NAMADA_BASE_DIR=/$(pwd)/.namada/validator-0

# or pass it as the parameter --base-dir
./target/release/namada ledger --base-dir="/$(pwd)/.namada/validator-0"
```

</Callout>

## Cleaning up

After the local network has fulfilled its purpose, it can be cleaned up by running the following commands found in the cleanup function of the script:
Expand Down

0 comments on commit ef99f0a

Please sign in to comment.