mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-06 22:23:56 -05:00
Problem: no prysmctl option in wrapper script to generate devnet ssz (#15145)
* Problem: no prysmctl option in wrapper script to generate devnet ssz * add doc
This commit is contained in:
3
changelog/mmsqe_add_prysmctl.md
Normal file
3
changelog/mmsqe_add_prysmctl.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
### Added
|
||||||
|
|
||||||
|
- prysmctl option in wrapper script to generate devnet ssz. [[PR]](https://github.com/prysmaticlabs/prysm/pull/15145)
|
||||||
29
prysm.sh
29
prysm.sh
@@ -69,7 +69,7 @@ function get_realpath() {
|
|||||||
if [ "$#" -lt 1 ]; then
|
if [ "$#" -lt 1 ]; then
|
||||||
color "31" "Usage: ./prysm.sh PROCESS FLAGS."
|
color "31" "Usage: ./prysm.sh PROCESS FLAGS."
|
||||||
color "31" " ./prysm.sh PROCESS --download-only."
|
color "31" " ./prysm.sh PROCESS --download-only."
|
||||||
color "31" "PROCESS can be beacon-chain, validator, or client-stats."
|
color "31" "PROCESS can be beacon-chain, validator, client-stats or prysmctl."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -178,6 +178,8 @@ else
|
|||||||
fi
|
fi
|
||||||
VALIDATOR_REAL="${wrapper_dir}/validator-${prysm_version}-${system}-${arch}"
|
VALIDATOR_REAL="${wrapper_dir}/validator-${prysm_version}-${system}-${arch}"
|
||||||
CLIENT_STATS_REAL="${wrapper_dir}/client-stats-${prysm_version}-${system}-${arch}"
|
CLIENT_STATS_REAL="${wrapper_dir}/client-stats-${prysm_version}-${system}-${arch}"
|
||||||
|
PRYSMCTL_REAL="${wrapper_dir}/prysmctl-${prysm_version}-${system}-${arch}"
|
||||||
|
|
||||||
|
|
||||||
if [[ $1 == beacon-chain ]]; then
|
if [[ $1 == beacon-chain ]]; then
|
||||||
if [[ ! -x $BEACON_CHAIN_REAL ]]; then
|
if [[ ! -x $BEACON_CHAIN_REAL ]]; then
|
||||||
@@ -236,6 +238,25 @@ if [[ $1 == client-stats ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [[ $1 == prysmctl ]]; then
|
||||||
|
if [[ ! -x $PRYSMCTL_REAL ]]; then
|
||||||
|
color "34" "Downloading prysmctl@${prysm_version} to ${PRYSMCTL_REAL} (${reason})"
|
||||||
|
|
||||||
|
file=prysmctl-${prysm_version}-${system}-${arch}
|
||||||
|
res=$(curl -w '%{http_code}\n' -f -L "https://prysmaticlabs.com/releases/${file}" -o "$PRYSMCTL_REAL" | ( grep 404 || true ) )
|
||||||
|
if [[ $res == 404 ]];then
|
||||||
|
echo "No prysm prysmctl found for ${prysm_version}, (${file}) exit"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
curl --silent -L "https://prysmaticlabs.com/releases/${file}.sha256" -o "${wrapper_dir}/${file}.sha256"
|
||||||
|
curl --silent -L "https://prysmaticlabs.com/releases/${file}.sig" -o "${wrapper_dir}/${file}.sig"
|
||||||
|
chmod +x "$PRYSMCTL_REAL"
|
||||||
|
else
|
||||||
|
color "37" "Prysmctl is up to date."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $1 == slasher ]]; then
|
if [[ $1 == slasher ]]; then
|
||||||
color "41" "The slasher binary is no longer available. Please use the --slasher flag with your beacon node. See: https://docs.prylabs.network/docs/prysm-usage/slasher/"
|
color "41" "The slasher binary is no longer available. Please use the --slasher flag with your beacon node. See: https://docs.prylabs.network/docs/prysm-usage/slasher/"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -254,11 +275,15 @@ client-stats)
|
|||||||
readonly process=$CLIENT_STATS_REAL
|
readonly process=$CLIENT_STATS_REAL
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
prysmctl)
|
||||||
|
readonly process=$PRYSMCTL_REAL
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
color "31" "Process '$1' is not found!"
|
color "31" "Process '$1' is not found!"
|
||||||
color "31" "Usage: ./prysm.sh PROCESS FLAGS."
|
color "31" "Usage: ./prysm.sh PROCESS FLAGS."
|
||||||
color "31" " ./prysm.sh PROCESS --download-only."
|
color "31" " ./prysm.sh PROCESS --download-only."
|
||||||
color "31" "PROCESS can be beacon-chain, validator, or client-stats."
|
color "31" "PROCESS can be beacon-chain, validator, client-stats or prysmctl."
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user