Zeeka saysGHOST chooses the chain head by walking down the heaviest subtree at every fork — counting work in all descendants, not just one branch.
Longest-chain wastes every block on a "stale" sibling. GHOST (Greedy Heaviest Observed SubTree) reuses that work: at each fork, pick the child whose subtree contains the most cumulative work, not the longest single chain. Pre-Merge Ethereum used a GHOST variant that even rewarded uncles, redistributing some of the reward to stale siblings to keep small miners viable.
The trade-off is more bookkeeping for the fork-choice rule — you have to know the subtree weight of every candidate — but the payoff is less wasted work at high block rates. The demo builds a tree where the longest single chain points one way (depth 3) while the heaviest subtree points the other (4 leaves), and shows the two rules diverge on the same data.
Power-ups you unlock
At each fork, pick the child whose subtree has the most cumulative work