Skip to content

Commit

Permalink
Update client node port in init script
Browse files Browse the repository at this point in the history
  • Loading branch information
ivivanov authored and ivivanov committed Feb 6, 2023
1 parent 9d95cf7 commit 08d127a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/remote/lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ update_config() {
_update_toml "$config_file" "$2" "$3"
}

update_client() {
local config_file="$1"/client.toml

_update_toml "$config_file" "$2" "$3"
}

_update_toml() {
local file="$1"

Expand Down
2 changes: 2 additions & 0 deletions scripts/remote/validator-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ update_config "$config_dir" '."instrumentation"."prometheus_listen_addr"' '"'":$
update_config "$config_dir" '."log_format"' '"json"'
update_config "$config_dir" '."log_level"' '"debug"'

update_client "$config_dir" '."node"' '"tcp://0.0.0.0:'"$RPC_PORT"'"' >/dev/null

tendermint_node_id=$(run_cmd "$home_dir" tendermint show-node-id)
validator_pub_key=$(run_cmd "$home_dir" tendermint show-validator)
echo "$tendermint_node_id@$HOST:$P2P_PORT $validator_pub_key"

0 comments on commit 08d127a

Please sign in to comment.