aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@gmail.com>2019-03-29 14:09:55 -0400
committerJames O'Beirne <james.obeirne@gmail.com>2019-09-17 09:45:38 -0400
commitbcf73d3b84649c8786f0cccc6862dd1bbdb9950b (patch)
tree03052fdd42629f875f9f4deccac13885f10c443e /src/init.cpp
parentf5809d5b135c7f9de5217d3cda76638fe7eed58a (diff)
refactoring: move LoadChainTip to CChainState method
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index bb82130542..d7b09b5e46 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1557,8 +1557,8 @@ bool AppInitMain(InitInterfaces& interfaces)
is_coinsview_empty = fReset || fReindexChainState ||
::ChainstateActive().CoinsTip().GetBestBlock().IsNull();
if (!is_coinsview_empty) {
- // LoadChainTip sets ::ChainActive() based on CoinsTip()'s best block
- if (!LoadChainTip(chainparams)) {
+ // LoadChainTip initializes the chain based on CoinsTip()'s best block
+ if (!::ChainstateActive().LoadChainTip(chainparams)) {
strLoadError = _("Error initializing block database").translated;
break;
}