mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge pull request #2606 from gavinandresen/threadfix
Exit cleanly if AppInit2 returns false
This commit is contained in:
commit
f309cb76c2
2 changed files with 6 additions and 3 deletions
|
|
@ -1041,6 +1041,9 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
if (!CheckDiskSpace())
|
||||
return false;
|
||||
|
||||
if (!strErrors.str().empty())
|
||||
return InitError(strErrors.str());
|
||||
|
||||
RandAddSeedPerfmon();
|
||||
|
||||
//// debug print
|
||||
|
|
@ -1062,9 +1065,6 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
|
||||
uiInterface.InitMessage(_("Done loading"));
|
||||
|
||||
if (!strErrors.str().empty())
|
||||
return InitError(strErrors.str());
|
||||
|
||||
// Add wallet transactions that aren't already in a block to mapTransactions
|
||||
pwalletMain->ReacceptWalletTransactions();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue