Builds on #7756 (only the last commit is specific here). Break the circular dependency between main and txdb by:
- Moving
CBlockFileInfo
frommain.h
tochain.h
. I think this makes sense, as the other block-file stuff is there too. - Moving
CDiskTxPos
frommain.h
totxdb.h
. This type, used for-txindex
seems specific to txdb. - Pass a functor
insertBlockIndex
toLoadBlockIndexGuts
. This leaves it up to the caller how to insert block indices.