Thank you for the answer. I'll look into it. I think it would be useful to create RPC API command to return info about such status. For example "getforkstatus 6" could return true if longest chain is longer or equal than next longest chain by at least 6 block. Additionally some --forknotify command-line parameter could notify about detecting blockchain fork...