diff options
| author | Matt Corallo <[email protected]> | 2017-07-06 21:32:08 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-07-27 15:03:05 -0400 |
| commit | 138569722cae09bb9e3bc31bbae4b1886b904bb5 (patch) | |
| tree | dd23401f3ac15c8752de7a1a06d8f2b0cdb4c608 /src/httpserver.cpp | |
| parent | Call RewindBlockIndex even if we're about to run -reindex-chainstate (diff) | |
| download | discoin-138569722cae09bb9e3bc31bbae4b1886b904bb5.tar.xz discoin-138569722cae09bb9e3bc31bbae4b1886b904bb5.zip | |
Order chainstate init more logically.
* Order chainstate init more logically - first all of the
blocktree-related loading, then coinsdb, then
pcoinsTip/chainActive. Only create objects as needed.
* More clearly document exactly what is and isn't called in
-reindex and -reindex-chainstate both with comments noting
calls as no-ops and by adding if guards.
* Move LoadGenesisBlock further down in init. This is a more logical
location for it, as it is after all of the blockindex-related
loading and checking, but before any of the UTXO-related loading
and checking.
* Move all of the VerifyDB()-related stuff into a -reindex +
-reindex-chainstate if guard. It couldn't do anything useful
as chainActive.Tip() would be null at this point anyway.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions