Hacker News new | ask | show | jobs
by olalonde 1629 days ago
Would be interesting to include stats on of chain reorgs (frequency, length, etc.) as they're technically part of their downtime definition ("current longest chain was not an active chain"). It would also give an idea of the level of risk when waiting for X confirmations.
1 comments

How can one get such stats? Any source for reference?
You could probably parse the Bitcoin Core logs (assuming reorgs are logged) or run a modified Bitcoin node software which explicitly tracks such reorgs.
Since chain reorgs identical to the individual nodes, i assume we cant gather such data..
You wouldn't catch all of them but I believe you could get a pretty good sample by running a single node. And you won't be able to get historical data unless someone else has been tracking this and shares their data with you.

There's some discussion about reorg frequency/depth on BitcoinTalk[0][1]. Also there is this academic paper[2].

[0] https://bitcointalk.org/index.php?topic=1403436.0 (2016)

[1] https://bitcointalk.org/index.php?topic=5351869.0 (2021)

[2] https://dspace.mit.edu/bitstream/handle/1721.1/127476/119301...