GHOST Voting Model

DEMONChain selecting a forked block is a critical task in determining the primary chain. While traditional proof-of-work systems rely on the longest chain rule, the DEMONChain introduces the Greedy Heaviest Observed Subtree (GHOST) rule. GHOST considers not only the length of the chain but also the number of blocks referencing each block, incorporating validators' opinions to achieve consensus. By including the validators' perspective alongside the block tree, the GHOST rule provides a more secure and fair method of selecting the primary chain, particularly in networks with a higher block production rate. This approach enhances the overall integrity and reliability of the blockchain consensus process within the DEMONChain protocol.