Skip to content

Commit

Permalink
feat: add testnet p2p addr_book_strict false config
Browse files Browse the repository at this point in the history
  • Loading branch information
fiamma-builder committed Aug 7, 2024
1 parent 199442a commit 6a61c55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/multi_node_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ for (( i=1; i <= "$#"; i++ )); do
docker run --rm -v $(pwd)/testnet-nodes/${!i}:/root/.fiamma -it ghcr.io/fiamma-chain/fiamma config set config p2p.persistent_peers "$other_addresses" --skip-validate
#RPC configuration
docker run --rm -v $(pwd)/testnet-nodes/${!i}:/root/.fiamma -it ghcr.io/fiamma-chain/fiamma config set config rpc.laddr "tcp://0.0.0.0:26657" --skip-validate
#P2P configuration
docker run --rm -v $(pwd)/testnet-nodes/${!i}:/root/.fiamma -it ghcr.io/fiamma-chain/fiamma config set config p2p.addr_book_strict false --skip-validate
#Explorer configuration
docker run --rm -v $(pwd)/testnet-nodes/${!i}:/root/.fiamma -it ghcr.io/fiamma-chain/fiamma config set config rpc.cors_allowed_origins '["*"]' --skip-validate
docker run --rm -v $(pwd)/testnet-nodes/${!i}:/root/.fiamma -it ghcr.io/fiamma-chain/fiamma config set app api.enable true --skip-validate
Expand All @@ -145,7 +147,7 @@ printf "version: '3.7'\nnetworks:\n net-public:\nservices:\n" > $(pwd)/testnet-
for node in "$@"; do
printf " fiammad-$node:\n command: start\n image: ghcr.io/fiamma-chain/fiamma\n container_name: $node\n volumes:\n - ./$node:/root/.fiamma\n networks:\n - net-public\n" >> $(pwd)/testnet-nodes/docker-compose.yml
if [ $node == "$1" ]; then
printf " ports:\n - 0.0.0.0:26657:26657\n" >> $(pwd)/testnet-nodes/docker-compose.yml
printf " ports:\n - 0.0.0.0:26657:26657\n - 0.0.0.0:1317:1317\n - 0.0.0.0:9090:9090\n - 0.0.0.0:26656:26656\n" >> $(pwd)/testnet-nodes/docker-compose.yml
fi
printf "\n" >> $(pwd)/testnet-nodes/docker-compose.yml
done
2 changes: 2 additions & 0 deletions scripts/run_localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ if ! fiammad genesis validate-genesis; then
exit 1
fi

# P2P configuration
fiammad config set config p2p.addr_book_strict false --skip-validate
#RPC configuration
fiammad config set config rpc.laddr "tcp://0.0.0.0:26657" --skip-validate
#Explorer configuration
Expand Down

0 comments on commit 6a61c55

Please sign in to comment.