mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-04 04:45:10 +02:00
refactoring: move ReplayBlocks under CChainState
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user