Skip to content

Commit

Permalink
Adjust to Prysm changed auth token (eth-educators#1863)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Jul 10, 2024
1 parent ee18fa5 commit 9b3f27b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions prysm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ services:
- /var/lib/prysm
- --wallet-dir
- /var/lib/prysm/
- --keymanager-token-file
- /var/lib/prysm/auth-token
- --beacon-rpc-provider
- consensus:4000
- --verbosity
Expand Down
7 changes: 2 additions & 5 deletions vc-utils/keymanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ call_api() {
else
echo "This was a call without data"
fi
echo "The token was ${__token} from ${__token_file}"
echo "The return code was ${__code} and if we had result data, here it is."
if [ -f /tmp/result.txt ]; then
cat /tmp/result.txt
Expand Down Expand Up @@ -76,11 +77,7 @@ call_cl_api() {

get-token() {
set +e
if [ -z "${PRYSM:+x}" ]; then
__token=$(< "${__token_file}")
else
__token=$(sed -n 2p "${__token_file}")
fi
__token=$(< "${__token_file}")
__return=$?
if [ $__return -ne 0 ]; then
echo "Error encountered while trying to get the keymanager API token."
Expand Down

0 comments on commit 9b3f27b

Please sign in to comment.