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
13 changes: 9 additions & 4 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# If your on windows use wsl / git bash / cygwin / msys2 with direnv

export CFG_PRESET=testnet-02
export CFG_PRESET=preview
export MIDNIGHT_NODE_IMAGE="ghcr.io/midnight-ntwrk/midnight-node:0.18.0-rc.7"
#export BOOTNODES="/dnsaddr/bootnodes.preview.midnight.network"
#export BOOTNODES="/dns/bootnodes.preview.midnight.network"
#export ARGS="--bootnodes /dns/midnight-7-midnight-node-boot-07/tcp/30333/ws/p2p/12D3KooWK66i7dtGVNSwDh9tTeqov1q6LSdWsRLJvTyzTCaywYgK --bootnodes /dns/bootnodes.preview.midnight.network/tcp/30333/ws/p2p/12D3KooWK66i7dtGVNSwDh9tTeqov1q6LSdWsRLJvTyzTCaywYgK --tracing-targets=info --rpc-methods unsafe --unsafe-rpc-external --state-pruning archive --blocks-pruning archive --rpc-cors=all --tx-ban-seconds 18000 --no-prometheus --no-telemetry"
export ARGS="--bootnodes /dns/bootnode-1.preview.midnight.network/tcp/30333/ws/p2p/12D3KooWK66i7dtGVNSwDh9tTeqov1q6LSdWsRLJvTyzTCaywYgK --bootnodes /dns/bootnode-2.preview.midnight.network/tcp/30333/ws/p2p/12D3KooWHqFfXFwb7WW4jwR8pr4BEf562v5M6c8K3CXAJq4Wx6ym --tracing-targets=info --rpc-methods unsafe --unsafe-rpc-external --rpc-cors=all --tx-ban-seconds 18000 --no-prometheus --no-telemetry"

source ./.envrc.${CFG_PRESET}
#source ./.envrc.${CFG_PRESET}

# This repository only accepts signed commits:

Expand Down Expand Up @@ -35,7 +40,7 @@ export DB_SYNC_POSTGRES_CONNECTION_STRING="psql://$POSTGRES_USER:$POSTGRES_PASSW

# To start with debug logs, add "-l debug" to APPEND_ARGS
# To expose safe rpc method to the host port 9944, add "--unsafe-rpc-external" to APPEND_ARGS or --validator
export APPEND_ARGS="--allow-private-ip --pool-limit 10 --trie-cache-size 0 --prometheus-external --rpc-external --rpc-cors all"
#export APPEND_ARGS="--allow-private-ip --pool-limit 10 --trie-cache-size 0 --prometheus-external --rpc-external --rpc-cors all"


# Validator Values:
Expand All @@ -50,6 +55,6 @@ export NODE_KEY="$(cat ./midnight-node.privatekey)"
# Partner chains config:
#
export CARDANO_NETWORK=preview
export CARDANO_IMAGE="ghcr.io/intersectmbo/cardano-node:10.2.1"
export CARDANO_IMAGE="ghcr.io/intersectmbo/cardano-node:10.5.3"
export CARDANO_DATA_DIR=./cardano-data
export CARDANO_CONFIG_DIR=./cardano-config/${CARDANO_NETWORK}
4 changes: 3 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ services:
- "9615:9615" # Prometheus - For monitoring, alerting and observability.
environment:
- APPEND_ARGS=${APPEND_ARGS}
- BOOTNODES=${BOOTNODES}
- CFG_PRESET=${CFG_PRESET}
- DB_SYNC_POSTGRES_CONNECTION_STRING=${DB_SYNC_POSTGRES_CONNECTION_STRING}
- NODE_KEY=${NODE_KEY}
- CARDANO_SECURITY_PARAMETER=432
- ARGS=${ARGS}
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

Loading