mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
refactor: move RewindBlockIndex to CChainState
This is in preparation for multiple chainstate initialization in init.
This commit is contained in:
parent
89cdf4d569
commit
5b690f0aae
3 changed files with 9 additions and 23 deletions
|
|
@ -1614,7 +1614,7 @@ bool AppInitMain(NodeContext& node)
|
|||
// It both disconnects blocks based on ::ChainActive(), and drops block data in
|
||||
// BlockIndex() based on lack of available witness data.
|
||||
uiInterface.InitMessage(_("Rewinding blocks...").translated);
|
||||
if (!RewindBlockIndex(chainparams)) {
|
||||
if (!::ChainstateActive().RewindBlockIndex(chainparams)) {
|
||||
strLoadError = _("Unable to rewind the database to a pre-fork state. You will need to redownload the blockchain").translated;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue