Guard against rsyncing TBs of ledger
This commit is contained in:
@ -70,7 +70,11 @@ tune_networking
|
|||||||
SOLANA_LEADER_CONFIG_DIR="$SOLANA_CONFIG_DIR"/leader-config
|
SOLANA_LEADER_CONFIG_DIR="$SOLANA_CONFIG_DIR"/leader-config
|
||||||
rm -rf "$SOLANA_LEADER_CONFIG_DIR"
|
rm -rf "$SOLANA_LEADER_CONFIG_DIR"
|
||||||
set -ex
|
set -ex
|
||||||
$rsync -vPrz "$rsync_leader_url"/config/ "$SOLANA_LEADER_CONFIG_DIR"
|
$rsync -vPrz --max-size=100M "$rsync_leader_url"/config/ "$SOLANA_LEADER_CONFIG_DIR"
|
||||||
|
[[ -r "$SOLANA_LEADER_CONFIG_DIR"/ledger.log ]] || {
|
||||||
|
echo "Unable to retrieve ledger.log from $rsync_leader_url"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
# Ensure the validator has at least 1 token before connecting to the network
|
# Ensure the validator has at least 1 token before connecting to the network
|
||||||
# TODO: Remove this workaround
|
# TODO: Remove this workaround
|
||||||
|
Reference in New Issue
Block a user