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
4 changes: 2 additions & 2 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/testnet2/mainnet
profile: "testnet2"
## the profile of node: devnet/testnet/premainnet/mainnet
profile: "premainnet"
# default chain url for miner, can be overwritten in miners[] as below
chainWsUrl: "ws://127.0.0.1:9944"

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.2"
network_version="testnet2"
mineradm_version="v0.2.3"
network_version="CESS Pre-Mainnet Venus Plus"

# 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="testnet2"
profile="premainnet"

# 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 | testnet2 | mainnet)
devnet | testnet | premainnet | 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 | testnet2 | mainnet)
devnet | testnet | premainnet | 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, testnet2, mainnet"
log_err "Invalid profile value. Choose from: devnet, testnet, premainnet, mainnet"
return 1
;;
esac
Expand Down
Loading