Post
Topic
Board Bitcoin Technical Support
Re: How to resolve forks while reading .dat files?
by
alikim
on 06/07/2017, 08:30:25 UTC
You need to take into account future blocks to detect orphans.   The longer path is the main chain.

Yes, but it's a sort of a race condition between forks, at which point you measure which one is longer, after the second block arrives in one of the forks?
How long ( or by how many blocks longer) one fork needs to be to win?