Recognize restarted node.

If a node restarts, check its authentication code against cached
information and reset the authentication code if different.