Browse Source
* Move the writing of fTxIndex to LoadBlockIndex - this fixes a
bug introduced in d6af06d68a
where
InitBlockIndex was writing to fTxIndex which had not yet been
checked (because LoadChainTip hadn't yet initialized the
chainActive, which would otherwise have resulted in
InitBlockIndex being a NOP), allowing you to modify -txindex
without reindex, potentially corrupting your chainstate!
* Rename InitBlockIndex to LoadGenesisBlock, which is now a more
natural name for it. Also check mapBlockIndex instead of
chainActive, fixing a bug where we'd write the genesis block out
on every start.
0.15
Matt Corallo
8 years ago
4 changed files with 47 additions and 33 deletions
Loading…
Reference in new issue