My code is essentially
start node
subscribe_blocks(my_call_back)
subscribe_transactoins(my_tx_callback)
in my_call_back: if node->chain()->is_blocks_stale() { return true }
same for tx's
when it's no longer stale I start sending data to the rest of my services