tac mainnet: merge Polkachu seeds in init.sh for peer discovery
Call ct_merge_seeds() so SEEDS env populates config.toml; default STATESYNC_RPC to tacchain-rpc.polkachu.com for statesync bootstrap.
This commit is contained in:
@@ -8,7 +8,7 @@ HOME_DIR="/root/.tacchaind"
|
||||
CONFIG_DIR="$HOME_DIR/config"
|
||||
CHAIN_ID="${CHAIN_ID:-tacchain_239-1}"
|
||||
GENESIS_URL="${GENESIS_URL:-https://raw.githubusercontent.com/TacBuild/tacchain/refs/heads/main/networks/tacchain_239-1/genesis.json}"
|
||||
STATESYNC_RPC="${STATESYNC_RPC:-https://tendermint.rpc.tac.build}"
|
||||
STATESYNC_RPC="${STATESYNC_RPC:-https://tacchain-rpc.polkachu.com:443}"
|
||||
MIN_GAS="${MIN_GAS:-25000000000utac}"
|
||||
API="${API:-eth,net,web3,txpool,debug}"
|
||||
MONIKER="${MONIKER:-rpc-node}"
|
||||
@@ -25,6 +25,7 @@ else
|
||||
fi
|
||||
|
||||
ct_patch_p2p "$CONFIG_DIR/config.toml" "$IP" "${P2P_PORT:-26656}"
|
||||
ct_merge_seeds "$CONFIG_DIR/config.toml" "$SEEDS"
|
||||
ct_set_persistent_peers "$CONFIG_DIR/config.toml" "$PERSISTENT_PEERS"
|
||||
ct_set_moniker "$CONFIG_DIR/config.toml" "$MONIKER"
|
||||
ct_configure_statesync "$CONFIG_DIR/config.toml" "$STATESYNC_RPC"
|
||||
|
||||
Reference in New Issue
Block a user