Please see [Invalid] Another attempt at O(n) LMD GHOST that is constant time on the number of blocks since genesis for the fix. I didn’t want to pollute this thread since the examples in this discussion no longer apply and the new algorithm is considerably simpler.