Skip to content

Commit e706c4b

Browse files
committed
Call InitializeCurrentBlockTip after importing has finished
1 parent f796bb8 commit e706c4b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/init.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,12 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
794794
StartShutdown();
795795
}
796796
} // End scope of CImportingNow
797+
798+
// force UpdatedBlockTip to initialize nCachedBlockHeight for PS, DN payments and budgets
799+
// but don't call it directly to prevent triggering of other listeners like zmq etc.
800+
// GetMainSignals().UpdatedBlockTip(chainActive.Tip());
801+
ppsNotificationInterface->InitializeCurrentBlockTip();
802+
797803
LoadMempool();
798804
fDumpMempoolLater = !fRequestShutdown;
799805
}
@@ -1943,13 +1949,6 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
19431949
}
19441950
}
19451951

1946-
// ********************************************************* Step 11c: update block tip in Dynamic modules
1947-
1948-
// force UpdatedBlockTip to initialize nCachedBlockHeight for PS, DN payments and budgets
1949-
// but don't call it directly to prevent triggering of other listeners like zmq etc.
1950-
// GetMainSignals().UpdatedBlockTip(chainActive.Tip());
1951-
ppsNotificationInterface->InitializeCurrentBlockTip();
1952-
19531952
// ********************************************************* Step 11d: start dynamic-ps-<smth> threads
19541953

19551954
if (!fLiteMode) {

0 commit comments

Comments
 (0)