Post
Topic
Board Development & Technical Discussion
Re: how long bitcoin core stores different branches for the case of reorg
by
uchalkql
on 21/04/2017, 01:37:35 UTC
Thank you 2112 and gmaxwell!

The variable BlockMap mapBlockIndex is defined in validation.cpp

I couldn't find where it is initialized.

There is only a comment here:
https://github.com/bitcoin/bitcoin/blob/86ea3c2ff247bb2ba0fb50013c8ecdbaf8a9fe8f/src/txdb.cpp
Code:
    // Load mapBlockIndex
while (pcursor->Valid()) {