Is there a way to tell if a node I am running is "current" along with the rest of the network? For example, if I am checking transactions against my node, how do I first ensure that my node's copy of the blockchain is the most current and up to date?
Reason being- I'd like to be able to write a script that checks for this and alerts me if my node is running behind.
monerod sync_info | grep Height
seems to work nice – farinspace Feb 08 '18 at 19:11