Update remote-node.sh to use bootstrap-leader.sh (#5352)
This commit is contained in:
parent
7dc5cc26a6
commit
294d9288d2
|
@ -20,6 +20,9 @@ while [[ -n $1 ]]; do
|
||||||
if [[ $1 = --init-complete-file ]]; then
|
if [[ $1 = --init-complete-file ]]; then
|
||||||
args+=("$1" "$2")
|
args+=("$1" "$2")
|
||||||
shift 2
|
shift 2
|
||||||
|
elif [[ $1 = --gossip-port ]]; then
|
||||||
|
args+=("$1" "$2")
|
||||||
|
shift 2
|
||||||
else
|
else
|
||||||
echo "Unknown argument: $1"
|
echo "Unknown argument: $1"
|
||||||
$program --help
|
$program --help
|
||||||
|
@ -60,7 +63,6 @@ ledger_config_dir="$SOLANA_CONFIG_DIR"/bootstrap-leader-ledger
|
||||||
args+=(
|
args+=(
|
||||||
--accounts "$SOLANA_CONFIG_DIR"/bootstrap-leader-accounts
|
--accounts "$SOLANA_CONFIG_DIR"/bootstrap-leader-accounts
|
||||||
--enable-rpc-exit
|
--enable-rpc-exit
|
||||||
--gossip-port 8001
|
|
||||||
--identity "$identity_keypair"
|
--identity "$identity_keypair"
|
||||||
--ledger "$ledger_config_dir"
|
--ledger "$ledger_config_dir"
|
||||||
--rpc-port 8899
|
--rpc-port 8899
|
||||||
|
@ -69,6 +71,7 @@ args+=(
|
||||||
--voting-keypair "$vote_keypair"
|
--voting-keypair "$vote_keypair"
|
||||||
--rpc-drone-address 127.0.0.1:9900
|
--rpc-drone-address 127.0.0.1:9900
|
||||||
)
|
)
|
||||||
|
default_arg --gossip-port 8001
|
||||||
|
|
||||||
identity_pubkey=$($solana_keygen pubkey "$identity_keypair")
|
identity_pubkey=$($solana_keygen pubkey "$identity_keypair")
|
||||||
export SOLANA_METRICS_HOST_ID="$identity_pubkey"
|
export SOLANA_METRICS_HOST_ID="$identity_pubkey"
|
||||||
|
|
|
@ -166,7 +166,6 @@ local|tar|skip)
|
||||||
./multinode-demo/setup.sh "${args[@]}"
|
./multinode-demo/setup.sh "${args[@]}"
|
||||||
fi
|
fi
|
||||||
args=(
|
args=(
|
||||||
--enable-rpc-exit
|
|
||||||
--gossip-port "$entrypointIp":8001
|
--gossip-port "$entrypointIp":8001
|
||||||
--init-complete-file "$initCompleteFile"
|
--init-complete-file "$initCompleteFile"
|
||||||
)
|
)
|
||||||
|
@ -176,7 +175,7 @@ local|tar|skip)
|
||||||
fi
|
fi
|
||||||
# shellcheck disable=SC2206 # Don't want to double quote $extraNodeArgs
|
# shellcheck disable=SC2206 # Don't want to double quote $extraNodeArgs
|
||||||
args+=($extraNodeArgs)
|
args+=($extraNodeArgs)
|
||||||
nohup ./multinode-demo/validator.sh --bootstrap-leader "${args[@]}" > fullnode.log 2>&1 &
|
nohup ./multinode-demo/bootstrap-leader.sh "${args[@]}" > fullnode.log 2>&1 &
|
||||||
pid=$!
|
pid=$!
|
||||||
oom_score_adj "$pid" 1000
|
oom_score_adj "$pid" 1000
|
||||||
waitForNodeToInit
|
waitForNodeToInit
|
||||||
|
|
Loading…
Reference in New Issue