HomePhabricator

Break circular dependency main โ†” txdb
99e70751f23aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Break circular dependency main โ†” txdb

Break the circular dependency between main and txdb by:

  • Moving CBlockFileInfo from main.h to chain.h. I think this makes sense, as the other block-file stuff is there too.
  • Moving CDiskTxPos from main.h to txdb.h. This type seems specific to txdb.
  • Pass a functor insertBlockIndex to LoadBlockIndexGuts. This leaves it up to the caller how to insert block indices.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Apr 5 2016, 13:14
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING73fc922ed643: Merge #7603: Build System: Use PACKAGE_TARNAME in NSIS script
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rSTAGING99e70751f23a: Break circular dependency main โ†” txdb (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Apr 15 2016, 15:48