i have been going through documentation of substrate . i came through the point of select chain method for forking concept and find out that their are two methods for chain selection Ghost and longest chain selection. i have found that ghost protocol is more secure than longest chain protocol. when going through code base of substrate i have found that it uses longest chain selection method . can some please provide me brief about it why substrate use longest chain method instead of ghost protocol .
Substrate can be used to implement any custom fork rule. The repo mainly provides an implementation for LongestChain and GRANDPA (Ghost-based). I believe
LongestChain is mainly used to provide a simple, easy to follow basis for further development. In serious production environments for Substrate-based blockchains, you'd usually see GRANDPA being used rather than the simple longest chain rule.