Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base dir callout for local network #367

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading