X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Finit.cpp;h=44e4f807351763f760c0c272e68ea7bf78b81e8e;hb=75b1972c9beab9c62a4f1d7c1162aba6dd658d4f;hp=8635ace96ab030dd418c2108ba37730bb707d614;hpb=6a467ea5724ee2bd7a6f53af3abcc5a57effafbb;p=novacoin.git diff --git a/src/init.cpp b/src/init.cpp index 8635ace..44e4f80 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -10,6 +10,7 @@ #include "init.h" #include "util.h" #include "ui_interface.h" +#include "checkpoints.h" #include #include #include @@ -105,7 +106,6 @@ void HandleSIGTERM(int) // Start // #if !defined(QT_GUI) -#if !defined(PPCOIN_GENESIS) int main(int argc, char* argv[]) { bool fRet = false; @@ -117,7 +117,6 @@ int main(int argc, char* argv[]) return 1; } #endif -#endif bool AppInit(int argc, char* argv[]) { @@ -595,6 +594,12 @@ bool AppInit2(int argc, char* argv[]) } } + if (mapArgs.count("-checkpointkey")) // ppcoin: checkpoint master priv key + { + if (!Checkpoints::SetCheckpointPrivKey(GetArg("-checkpointkey", ""))) + ThreadSafeMessageBox(_("Unable to sign checkpoint, wrong checkpointkey?\n"), _("PPCoin"), wxOK | wxMODAL); + } + // // Start the node //