Fork resolution loop

There is a problem with g1-test, my node is in an almost never ending loop.

It tries to resolve a longer fork, but this one is wrong and my node tries and tries again to use it whereas it cannot.

At least, the fork should be marked as "invalid" in memory as long as local blockchain has not changed.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information