diff options
| author | James O'Beirne <[email protected]> | 2019-12-12 10:28:14 -0500 |
|---|---|---|
| committer | James O'Beirne <[email protected]> | 2020-03-17 14:03:40 -0400 |
| commit | 5b690f0aae21e7d46cbefe3f5be645842ac4ae3b (patch) | |
| tree | f400ff724c4d23acaff44dd9820854e00cbdafdb /src/init.cpp | |
| parent | validation: introduce unused ChainstateManager (diff) | |
| download | discoin-5b690f0aae21e7d46cbefe3f5be645842ac4ae3b.tar.xz discoin-5b690f0aae21e7d46cbefe3f5be645842ac4ae3b.zip | |
refactor: move RewindBlockIndex to CChainState
This is in preparation for multiple chainstate initialization in init.
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 97640b065..765c61b3d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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; } |