script to check if the running node is the furthest ahead replica
functions used in determing the furthest ahead replica