Skip to content
Snippets Groups Projects
Commit 19d02eda authored by Marcin's avatar Marcin
Browse files

one more thing to newer haf

parent 9abb22d1
No related branches found
No related tags found
No related merge requests found
Pipeline #120000 failed
...@@ -5,7 +5,7 @@ check_haf_lib() { ...@@ -5,7 +5,7 @@ check_haf_lib() {
echo "down #HAF not in sync" echo "down #HAF not in sync"
exit 1 exit 1
fi fi
LAST_IRREVERSIBLE_BLOCK_AGE=$(psql "$POSTGRES_URL" --quiet --no-align --tuples-only --command="select extract('epoch' from now() - created_at)::integer from hafd.blocks where num = (select consistent_block from hafd.irreversible_data)") LAST_IRREVERSIBLE_BLOCK_AGE=$(psql "$POSTGRES_URL" --quiet --no-align --tuples-only --command="select extract('epoch' from now() - created_at)::integer from hafd.blocks where num = (select consistent_block from hafd.hive_state)")
if [ "$LAST_IRREVERSIBLE_BLOCK_AGE" -gt 60 ]; then if [ "$LAST_IRREVERSIBLE_BLOCK_AGE" -gt 60 ]; then
age_string=$(format_seconds "$LAST_IRREVERSIBLE_BLOCK_AGE") age_string=$(format_seconds "$LAST_IRREVERSIBLE_BLOCK_AGE")
echo "down #HAF LIB over a minute old ($age_string)" echo "down #HAF LIB over a minute old ($age_string)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment