From a805014398d85c4323031e0d0373e6191b5046af Mon Sep 17 00:00:00 2001 From: Solovyov1796 Date: Sat, 3 Aug 2024 22:02:19 +0800 Subject: [PATCH] modify deploy script --- networks/testnet/init-genesis.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/networks/testnet/init-genesis.sh b/networks/testnet/init-genesis.sh index f10569e4..4a085017 100755 --- a/networks/testnet/init-genesis.sh +++ b/networks/testnet/init-genesis.sh @@ -166,6 +166,7 @@ done # Create genesis at node0 and copy to other nodes 0gchaind collect-gentxs --home "$ROOT_DIR/node0" --gentx-dir "$ROOT_DIR/gentxs" >/dev/null 2>&1 +sed -i '/persistent_peers = /c\persistent_peers = ""' "$ROOT_DIR"/node0/config/config.toml 0gchaind validate-genesis --home "$ROOT_DIR/node0" for ((i=1; i<$NUM_NODES; i++)) do cp "$ROOT_DIR"/node0/config/genesis.json "$ROOT_DIR"/node$i/config/genesis.json