Hello Bitcointalk members, as it's apparent from the title, i need a reliable way to detect orphan blocks. I wrote a custom explorer, and it's running quite fast actually, but i need an explanation on how exactly i can detect orphans, and mark them as so.
What the longest chain fork due to orphan blocks is?
If on every block sync, i check the last 1000 blocks, is that enough to assume that every block beyond these 1000 is NOT an orphan?
Is the -1 confirmations the only way to detect them?
Admins, if this post is not for this board/section, feel free to move it