Compare commits

...

4 Commits

8 changed files with 22 additions and 26 deletions

@ -96,18 +96,18 @@ The following command will start a new validator node.
If this is a `solana-install`-installation: If this is a `solana-install`-installation:
```bash ```bash
$ fullnode-x.sh --public-address --poll-for-new-genesis-block beta.testnet.solana.com:8001 $ fullnode-x.sh --public-address --no-stake --poll-for-new-genesis-block beta.testnet.solana.com:8001
``` ```
Alternatively, the `solana-install run` command can be used to run the validator Alternatively, the `solana-install run` command can be used to run the validator
node while periodically checking for and applying software updates: node while periodically checking for and applying software updates:
```bash ```bash
$ solana-install run fullnode-x.sh --public-address --poll-for-new-genesis-block beta.testnet.solana.com:8001 $ solana-install run fullnode-x.sh --public-address --no-stake --poll-for-new-genesis-block beta.testnet.solana.com:8001
``` ```
When not using `solana-install`: When not using `solana-install`:
```bash ```bash
$ USE_INSTALL=1 ./multinode-demo/fullnode-x.sh --public-address --poll-for-new-genesis-block beta.testnet.solana.com:8001 $ USE_INSTALL=1 ./multinode-demo/fullnode-x.sh --public-address --no-stake --poll-for-new-genesis-block beta.testnet.solana.com:8001
``` ```
Then from another console, confirm the IP address if your node is now visible in Then from another console, confirm the IP address if your node is now visible in

@ -55,7 +55,7 @@ while getopts "ch?i:k:brxR" opt; do
restartInterval=$OPTARG restartInterval=$OPTARG
;; ;;
b) b)
maybeNoLeaderRotation="--only-bootstrap-stake" maybeNoLeaderRotation="--no-stake"
;; ;;
x) x)
extraNodes=$((extraNodes + 1)) extraNodes=$((extraNodes + 1))
@ -78,7 +78,6 @@ source scripts/configure-metrics.sh
nodes=( nodes=(
"multinode-demo/drone.sh" "multinode-demo/drone.sh"
"multinode-demo/bootstrap-leader.sh \ "multinode-demo/bootstrap-leader.sh \
$maybeNoLeaderRotation \
--enable-rpc-exit \ --enable-rpc-exit \
--init-complete-file init-complete-node1.log" --init-complete-file init-complete-node1.log"
"multinode-demo/fullnode.sh \ "multinode-demo/fullnode.sh \

@ -241,19 +241,19 @@ start() {
EC2_ZONE_ARGS+=("-z $val") EC2_ZONE_ARGS+=("-z $val")
done done
[[ -n $EC2_NODE_COUNT ]] || EC2_NODE_COUNT=60 # shellcheck disable=SC2068
[[ -n $GCE_NODE_COUNT ]] || GCE_NODE_COUNT=40 [[ -z $EC2_NODE_COUNT ]] || ci/testnet-deploy.sh -p beta-testnet-solana-com -C ec2 ${EC2_ZONE_ARGS[@]} \
-t "$CHANNEL_OR_TAG" -n "$EC2_NODE_COUNT" -c 0 -u -P -a eipalloc-0f286cf8a0771ce35 \
${maybeReuseLedger:+-r} \
${maybeDelete:+-D} \
${GCE_NODE_COUNT:+-s}
# shellcheck disable=SC2068 # shellcheck disable=SC2068
ci/testnet-deploy.sh -p beta-testnet-solana-com -C ec2 ${EC2_ZONE_ARGS[@]} \ [[ -z $GCE_NODE_COUNT ]] || ci/testnet-deploy.sh -p beta-testnet-solana-com -C gce ${GCE_ZONE_ARGS[@]} \
-t "$CHANNEL_OR_TAG" -n "$EC2_NODE_COUNT" -c 0 -s -u -P -a eipalloc-0f286cf8a0771ce35 \ -t "$CHANNEL_OR_TAG" -n "$GCE_NODE_COUNT" -c 0 -P \
${maybeReuseLedger:+-r} \ ${maybeReuseLedger:+-r} \
${maybeDelete:+-D} ${maybeDelete:+-D} \
# shellcheck disable=SC2068 ${EC2_NODE_COUNT:+-x}
ci/testnet-deploy.sh -p beta-testnet-solana-com -C gce ${GCE_ZONE_ARGS[@]} \
-t "$CHANNEL_OR_TAG" -n "$GCE_NODE_COUNT" -c 0 -x -P \
${maybeReuseLedger:+-r} \
${maybeDelete:+-D}
) )
;; ;;
testnet-beta-perf) testnet-beta-perf)

@ -169,7 +169,7 @@ fullnode_usage() {
echo echo
fi fi
cat <<EOF cat <<EOF
usage: $0 [-x] [--blockstream PATH] [--init-complete-file FILE] [--only-bootstrap-stake] [--no-voting] [--rpc-port port] [rsync network path to bootstrap leader configuration] [network entry point] usage: $0 [-x] [--blockstream PATH] [--init-complete-file FILE] [--no-stake] [--no-voting] [--rpc-port port] [rsync network path to bootstrap leader configuration] [network entry point]
Start a full node on the specified network Start a full node on the specified network
@ -178,7 +178,7 @@ Start a full node on the specified network
the specified label. Does not apply to the bootstrap leader the specified label. Does not apply to the bootstrap leader
--blockstream PATH - open blockstream at this unix domain socket location --blockstream PATH - open blockstream at this unix domain socket location
--init-complete-file FILE - create this file, if it doesn't already exist, once node initialization is complete --init-complete-file FILE - create this file, if it doesn't already exist, once node initialization is complete
--only-bootstrap-stake - Only stake the bootstrap leader, effectively disabling leader rotation --no-stake - Only stake the bootstrap leader, effectively disabling leader rotation
--public-address - advertise public machine address in gossip. By default the local machine address is advertised --public-address - advertise public machine address in gossip. By default the local machine address is advertised
--no-voting - start node without vote signer --no-voting - start node without vote signer
--rpc-port port - custom RPC port for this node --rpc-port port - custom RPC port for this node

@ -32,6 +32,7 @@ while [[ ${1:0:1} = - ]]; do
poll_for_new_genesis_block=1 poll_for_new_genesis_block=1
shift shift
elif [[ $1 = --blockstream ]]; then elif [[ $1 = --blockstream ]]; then
setup_stakes=0
extra_fullnode_args+=("$1" "$2") extra_fullnode_args+=("$1" "$2")
shift 2 shift 2
elif [[ $1 = --enable-rpc-exit ]]; then elif [[ $1 = --enable-rpc-exit ]]; then
@ -40,7 +41,7 @@ while [[ ${1:0:1} = - ]]; do
elif [[ $1 = --init-complete-file ]]; then elif [[ $1 = --init-complete-file ]]; then
extra_fullnode_args+=("$1" "$2") extra_fullnode_args+=("$1" "$2")
shift 2 shift 2
elif [[ $1 = --only-bootstrap-stake ]]; then elif [[ $1 = --no-stake ]]; then
setup_stakes=0 setup_stakes=0
shift shift
elif [[ $1 = --public-address ]]; then elif [[ $1 = --public-address ]]; then

@ -73,16 +73,12 @@ local|tar)
fi fi
./multinode-demo/drone.sh > drone.log 2>&1 & ./multinode-demo/drone.sh > drone.log 2>&1 &
maybeNoLeaderRotation=
if ! $leaderRotation; then
maybeNoLeaderRotation="--only-bootstrap-stake"
fi
maybePublicAddress= maybePublicAddress=
if $publicNetwork; then if $publicNetwork; then
maybePublicAddress="--public-address" maybePublicAddress="--public-address"
fi fi
./multinode-demo/bootstrap-leader.sh $maybeNoLeaderRotation $maybePublicAddress > bootstrap-leader.log 2>&1 & ./multinode-demo/bootstrap-leader.sh $maybePublicAddress > bootstrap-leader.log 2>&1 &
ln -sTf bootstrap-leader.log fullnode.log ln -sTf bootstrap-leader.log fullnode.log
;; ;;
fullnode|blockstreamer) fullnode|blockstreamer)
@ -95,7 +91,7 @@ local|tar)
args=() args=()
if ! $leaderRotation; then if ! $leaderRotation; then
args+=("--only-bootstrap-stake") args+=("--no-stake")
fi fi
if $publicNetwork; then if $publicNetwork; then
args+=("--public-address") args+=("--public-address")

@ -133,7 +133,7 @@ echo "--- $entrypointIp: validator sanity"
if $validatorSanity; then if $validatorSanity; then
( (
set -x -o pipefail set -x -o pipefail
timeout 10s ./multinode-demo/fullnode-x.sh \ timeout 10s ./multinode-demo/fullnode-x.sh --no-stake \
"$entrypointRsyncUrl" \ "$entrypointRsyncUrl" \
"$entrypointIp:8001" 2>&1 | tee validator-sanity.log "$entrypointIp:8001" 2>&1 | tee validator-sanity.log
) || { ) || {

@ -89,7 +89,7 @@ for Cargo_toml in "${Cargo_tomls[@]}"; do
( (
set -x set -x
sed -i "$Cargo_toml" -e " sed -i "$Cargo_toml" -e "
s/^$crate = .*path = \"\([^\"]*\)\".*\$/$crate = \{ path = \"\1\", version = \"$newVersion\" \}/ s/^$crate = { *path *= *\"\([^\"]*\)\" *, *version *= *\"[^\"]*\"\(.*\)} *\$/$crate = \{ path = \"\1\", version = \"$newVersion\"\2 \}/
" "
) )
done done