Problem
The documentation at https://docs.bittensor.com/developer-docs/subnet-development instructs users to run:
-
cargo build -p node-subtensor --profile production --features pow-faucet
-
BUILD_BINARY=0 ./scripts/localnet.sh
However, this results in errors because:
- The build command outputs the binary to
target/production/release/node-subtensor
- The
localnet.sh script expects a fast-blocks build located at target/fast-blocks/release/node-subtensor
Suggested Fix
Update the docs to either:
- Match the script by telling users to build using:
CARGO_TARGET_DIR=target/fast-blocks cargo build -p node-subtensor --profile=release --features="pow-faucet fast-blocks"
OR
- Modify
localnet.sh to optionally use production as the default target dir when BUILD_BINARY=0.
Thanks for the great project!