Patch checkpoints, diff algo and PoS functions, versions, to resolve fork problem