cardano-docker/scripts/functions/check_kes_status

13 lines
306 B
Plaintext
Raw Permalink Normal View History

2021-02-13 15:19:38 +00:00
function check_kes_status {
source /scripts/init_node_vars
source ${NODE_PATH}/staking/pool-keys/KESPERIOD
if [ -n "$EXPIRESLOT" ]; then
CURRENT_SLOT=$(get_slot)
SLOTS_LEFT=$(expr ${EXPIRESLOT} - ${CURRENT_SLOT})
echo ${SLOTS_LEFT}
else
echo 0
fi
}