init other ip
This commit is contained in:
parent
5f5f3e9566
commit
70aae732d4
@ -33,14 +33,16 @@ cantod init $MONIKER --chain-id $CHAINID
|
||||
|
||||
# 持久对等节点(始终保持连接)
|
||||
# persistent_peers = "<peer_node_id>@<ip>:<port>,<peer_node_id>@<ip>:<port>"
|
||||
# cantod status | jq '.node_info.id'
|
||||
# cantod collect-gentxs 2>&1 | jq '.app_message.genutil.gen_txs[0].body.memo'
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
sed -i '' 's/minimum-gas-prices = "0acanto"/minimum-gas-prices = "0.0001acanto"/g' $HOME/.cantod/config/app.toml
|
||||
sed -i '' 's/persistent_peers = ""/persistent_peers = "a4eec64d88314553eee08206d8e2a986562ef310@193.200.130.186:26656"/g' $HOME/.cantod/config/config.toml
|
||||
sed -i '' 's/persistent_peers = ""/persistent_peers = "a4eec64d88314553eee08206d8e2a986562ef310@193.200.130.186:26656,8173fbffbde95c798cfea9356ea976cf166915eb@193.200.130.186:26657"/g' $HOME/.cantod/config/config.toml
|
||||
else
|
||||
sed -i 's/minimum-gas-prices = "0acanto"/minimum-gas-prices = "0.0001acanto"/g' $HOME/.cantod/config/app.toml
|
||||
|
||||
sed -i 's/persistent_peers = ""/persistent_peers = "a4eec64d88314553eee08206d8e2a986562ef310@193.200.130.186:26656"/g' $HOME/.cantod/config/config.toml
|
||||
sed -i 's/persistent_peers = ""/persistent_peers = "a4eec64d88314553eee08206d8e2a986562ef310@193.200.130.186:26656,8173fbffbde95c798cfea9356ea976cf166915eb@193.200.130.186:26657"/g' $HOME/.cantod/config/config.toml
|
||||
|
||||
|
||||
fi
|
||||
|
||||
@ -49,11 +51,3 @@ cp -f genesis.json $HOME/.cantod/config/genesis.json
|
||||
|
||||
# cantod start --pruning=nothing $TRACE --log_level info --minimum-gas-prices=0.0001acanto --json-rpc.ws-address '0.0.0.0:8546' --json-rpc.address '0.0.0.0:8545' --json-rpc.api eth,txpool,personal,net,debug,web3 --rpc.laddr 'tcp://0.0.0.0:26657' --api.enable --chain-id canto_1264-1
|
||||
|
||||
|
||||
# evmosd start \
|
||||
# --metrics "$TRACE" \
|
||||
# --log_level $LOGLEVEL \
|
||||
# --minimum-gas-prices=0.0001$BASE_DENOM \
|
||||
# --json-rpc.api eth,txpool,personal,net,debug,web3 \
|
||||
# --home "$HOMEDIR" \
|
||||
# --chain-id "$CHAINID"
|
||||
Loading…
Reference in New Issue
Block a user