From ab20c9a4934a31ec38dc8c320c8c6d50994eb045 Mon Sep 17 00:00:00 2001 From: sunway910 Date: Fri, 15 Aug 2025 14:47:30 +0800 Subject: [PATCH] feat: pump version to 0.2.2 for testnet2 --- config.yaml | 12 ++++++------ scripts/utils.sh | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/config.yaml b/config.yaml index 43abb7f..be293d6 100644 --- a/config.yaml +++ b/config.yaml @@ -1,8 +1,8 @@ ## node configurations template node: mode: "multiminer" - ## the profile of node: devnet/testnet/premainnet/mainnet - profile: "testnet" + ## the profile of node: devnet/testnet/testnet2/mainnet + profile: "testnet2" # default chain url for miner, can be overwritten in miners[] as below chainWsUrl: "ws://127.0.0.1:9944" @@ -45,9 +45,9 @@ miners: # miner work at this path diskPath: "/mnt/cess_storage1" # The rpc endpoint of the chain - # `official chain: "wss://testnet-rpc.cess.network"` + # `official chain: "wss://t2-rpc.cess.network"` chainWsUrl: "ws://127.0.0.1:9944" - backupChainWsUrls: [ "wss://testnet-rpc.cess.network" ] + backupChainWsUrls: [ "wss://t2-rpc.cess.network" ] # Default 12 second for transaction with chain Timeout: 12 # Tee public key @@ -66,7 +66,7 @@ miners: mnemonic: "xxx" diskPath: "/mnt/cess_storage2" chainWsUrl: "ws://127.0.0.1:9944" - backupChainWsUrls: [ "wss://testnet-rpc.cess.network" ] + backupChainWsUrls: [ "wss://t2-rpc.cess.network" ] Timeout: 12 # cacher is a gateway which provide an integration interface for all of your storage miners @@ -80,7 +80,7 @@ cacher: # The RPC address of the blockchain where the cache protocol smart contract is deployed, usually the CESS chain Rpcs: - "ws://127.0.0.1:9944" - - "ws://testnet-rpc.cess.network" + - "ws://t2-rpc.cess.network" # SecretKey is the key of the node working account (Ethereum wallet account), which is used to initiate a call request to the cache protocol contract (working on EVM). # By default, it is not filled in, which means that it does not participate in the CD2N network and only has the most basic data interaction with the gateway. SecretKey: "" diff --git a/scripts/utils.sh b/scripts/utils.sh index 4119b4a..21e7d04 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -14,8 +14,8 @@ set -o pipefail # --- Global Variables & Constants --- # Versioning -mineradm_version="v0.2.1" -network_version="testnet" +mineradm_version="v0.2.2" +network_version="testnet2" # Paths base_dir="/opt/cess/mineradm" @@ -25,7 +25,7 @@ build_dir="$base_dir/build" compose_yaml="$build_dir/docker-compose.yaml" # Configuration Profile -profile="testnet" +profile="testnet2" # System Requirements kernel_ver_req="5.11" @@ -232,7 +232,7 @@ load_profile() { local current_profile current_profile=$(yq eval ".node.profile" "$config_path") case "$current_profile" in - devnet | testnet | premainnet | mainnet) + devnet | testnet | testnet2 | mainnet) profile="$current_profile" log_info "Loaded profile: $profile" ;; @@ -294,12 +294,12 @@ set_profile() { return fi case "$to_set" in - devnet | testnet | premainnet | mainnet) + devnet | testnet | testnet2 | mainnet) yq -i eval ".node.profile=\"$to_set\"" "$config_path" log_success "Set profile to: $to_set" ;; *) - log_err "Invalid profile value. Choose from: devnet, testnet, premainnet, mainnet" + log_err "Invalid profile value. Choose from: devnet, testnet, testnet2, mainnet" return 1 ;; esac