Skip to content

Commit

Permalink
[Trivial] Init.cpp, instead of use LogPrint, use error.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Oct 3, 2019
1 parent 6637fd1 commit 83d8d00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1719,8 +1719,7 @@ bool AppInit2()
if (!pwalletMain->TopUpKeyPool()) {
// Error generating keys
InitError(_("Unable to generate initial key") += "\n");
LogPrintf("%s %s\n", __func__ , "Unable to generate initial key");
return false;
return error("%s %s", __func__ , "Unable to generate initial key");
}

pwalletMain->SetBestChain(chainActive.GetLocator());
Expand Down

0 comments on commit 83d8d00

Please sign in to comment.