File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
docs/website/static/scripts Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- if [ -z " $SIGNER_LOGS_PATH " ]; then
6
- echo " >> ERROR: Required environment variable SIGNER_LOGS_PATH is not set."
5
+ if [ -z " $AGGREGATOR_ENDPOINT " ] || [ -z " $PARTY_ID " ]; then
6
+ echo " >> ERROR: Required environment variables AGGREGATOR_ENDPOINT and/or PARTY_ID are not set."
7
7
exit 1
8
8
fi
9
9
10
- if grep -q " STATE MACHINE: new cycle: Registered" " $SIGNER_LOGS_PATH " ; then
10
+ CURRENT_EPOCH=$( curl -s " $AGGREGATOR_ENDPOINT /epoch-settings" -H ' accept: application/json' | jq -r ' .epoch' )
11
+ SIGNERS_REGISTERED_RESPONSE=$( curl -s " $AGGREGATOR_ENDPOINT /signers/registered/$CURRENT_EPOCH " -H ' accept: application/json' )
12
+
13
+ if echo " $SIGNERS_REGISTERED_RESPONSE " | grep -q " $PARTY_ID " ; then
11
14
echo " >> Congrats, your signer node is registered!"
12
15
else
13
- echo " >> Oops, your signer node is not registered. Check your configuration ."
16
+ echo " >> Oops, your signer node is not registered. Party ID not found among the signers registered at epoch ${CURRENT_EPOCH} ."
14
17
fi
You can’t perform that action at this time.
0 commit comments