Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ChunkEntity.isMoreRecentThan() if both chunks linked to last forward
Imagine scenario: [chunkToCheck] -> [this] -> [lastForwardChunk] Then, both `isLastForward` checks will not return, and also the `chunkToCheck.doesNextChunksVerifyCondition { it == this }` will return false. Since both chunks are connected to the last forward chunk, `isMoreRecent()` will still return `true`, which is wrong in this case. So do not only check if chunkToCheck has this as any of the next chunks, but also the other way round.
- Loading branch information