refactoring: move ReplayBlocks under CChainState

This commit is contained in:
James O'Beirne
2019-03-29 16:43:59 -04:00
parent bcf73d3b84
commit 3cf36736e5
3 changed files with 7 additions and 12 deletions

View File

@@ -1545,7 +1545,7 @@ bool AppInitMain(InitInterfaces& interfaces)
}
// ReplayBlocks is a no-op if we cleared the coinsviewdb with -reindex or -reindex-chainstate
if (!ReplayBlocks(chainparams, &::ChainstateActive().CoinsDB())) {
if (!::ChainstateActive().ReplayBlocks(chainparams)) {
strLoadError = _("Unable to replay blocks. You will need to rebuild the database using -reindex-chainstate.").translated;
break;
}