X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Finit.cpp;h=62b61036199f1e0a89b6d6e24b5323706e5685f6;hb=bf2ce95cb5b1da5d894e5302a7c4de0894c1cce2;hp=8635ace96ab030dd418c2108ba37730bb707d614;hpb=6a467ea5724ee2bd7a6f53af3abcc5a57effafbb;p=novacoin.git diff --git a/src/init.cpp b/src/init.cpp index 8635ace..62b6103 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 @@ -595,6 +596,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 //