Add accept-newer-epoch check to heartbeat