Skip to content

Commit

Permalink
Check checkpoint key on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Jan 25, 2018
1 parent 2ba81d2 commit 3d1ac36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,12 @@ bool AppInit2(boost::thread_group& threadGroup)
strLoadError = _("Corrupted block database detected");
break;
}

uiInterface.InitMessage(_("Checking ACP ..."));
if (!CheckCheckpointPubKey()) {
strLoadError = _("Checking ACP pubkey failed");
break;
}
} catch(std::exception &e) {
if (fDebug) LogPrintf("%s\n", e.what());
strLoadError = _("Error opening block database");
Expand Down

0 comments on commit 3d1ac36

Please sign in to comment.