Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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: ""
Expand Down
12 changes: 6 additions & 6 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
;;
Expand Down Expand Up @@ -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
Expand Down
Loading