mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
modify deploy script
This commit is contained in:
parent
78114aed73
commit
817a8a151a
@ -166,6 +166,7 @@ done
|
|||||||
|
|
||||||
# Create genesis at node0 and copy to other nodes
|
# 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
|
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"
|
0gchaind validate-genesis --home "$ROOT_DIR/node0"
|
||||||
for ((i=1; i<$NUM_NODES; i++)) do
|
for ((i=1; i<$NUM_NODES; i++)) do
|
||||||
cp "$ROOT_DIR"/node0/config/genesis.json "$ROOT_DIR"/node$i/config/genesis.json
|
cp "$ROOT_DIR"/node0/config/genesis.json "$ROOT_DIR"/node$i/config/genesis.json
|
||||||
|
Loading…
Reference in New Issue
Block a user