Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [ ! -f node.privatekey ]; then
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run --rm -it docker.io/parity/subkey:latest generate-node-key | sed -n '2p' > midnight-node.privatekey
# Use the second line of output for NODE_KEY (that's what sed -n '2p' does)
fi
export NODE_KEY="$(cat ./midnight-node.privatekey)"
export NODE_KEY_FILE="./midnight-node.privatekey"

#
# Partner chains config:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## 🚀 Features

- Recommended to use NODE_KEY_FILE rather than NODE_KEY
- Cardano's ipc socket file is now stored in a docker volume so when stale can be recreated on all OSes.
- `cardano-cli.sh`, `midnight-node.sh` and `midnight-shell.sh` execute within the running container.
- Switch networks by altering CFG_PRESET only
Expand Down
3 changes: 2 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
- BOOTNODES=${BOOTNODES}
- CFG_PRESET=${CFG_PRESET}
- DB_SYNC_POSTGRES_CONNECTION_STRING=${DB_SYNC_POSTGRES_CONNECTION_STRING}
- NODE_KEY=${NODE_KEY}
- NODE_KEY_FILE=/midnight-node.privatekey
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9944/health" ]
interval: 2s
volumes:
- ./data:/data
- ./envs/${CFG_PRESET}/pc-chain-config.json:/pc-chain-config.json
- midnight-data-testnet:/node
- ${NODE_KEY_FILE}:/midnight-node.privatekey:ro