Show an init message while activating best chain

Connecting the chain can take quite a while.
All the while it is still showing `Loading wallet...`.
Add an init message to inform the user what is happening.
This commit is contained in:
Wladimir J. van der Laan 2015-05-04 17:35:22 +02:00
parent 16341cc15c
commit 04140457f4
1 changed files with 1 additions and 0 deletions

View File

@ -1333,6 +1333,7 @@ bool AppInit2(boost::thread_group& threadGroup)
if (mapArgs.count("-blocknotify"))
uiInterface.NotifyBlockTip.connect(BlockNotifyCallback);
uiInterface.InitMessage(_("Activating best chain..."));
// scan for better chains in the block chain database, that are not yet connected in the active best chain
CValidationState state;
if (!ActivateBestChain(state))