From 70aae732d472b6dccfcc02a8d4accf199ed68202 Mon Sep 17 00:00:00 2001 From: zerone Date: Sun, 3 Nov 2024 14:48:50 +0800 Subject: [PATCH] init other ip --- init_other.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/init_other.sh b/init_other.sh index 558daee..8b9d263 100644 --- a/init_other.sh +++ b/init_other.sh @@ -33,14 +33,16 @@ cantod init $MONIKER --chain-id $CHAINID # 持久对等节点(始终保持连接) # persistent_peers = "@:,@:" +# 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" \ No newline at end of file