diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index cb787357d..70472e542 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -106,6 +106,10 @@ bool AppInit(int argc, char* argv[]) fprintf(stderr, "Error: Invalid combination of -regtest and -testnet.\n"); return false; } + extern int32_t IS_KOMODO_NOTARY; + extern std::string NOTARY_PUBKEY; + IS_KOMODO_NOTARY = GetBoolArg("-notary", false); + NOTARY_PUBKEY = GetArg("-pubkey", ""); // Command-line RPC bool fCommandLine = false; diff --git a/src/init.cpp b/src/init.cpp index 5ce21da94..c169d10c4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1479,11 +1479,6 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) // Generate coins in the background if (pwalletMain) GenerateBitcoins(GetBoolArg("-gen", false), pwalletMain, GetArg("-genproclimit", 1)); - extern int32_t IS_KOMODO_NOTARY; - extern std::string NOTARY_PUBKEY; - IS_KOMODO_NOTARY = GetBoolArg("-notary", false); - NOTARY_PUBKEY = GetArg("-pubkey", ""); - #endif // ********************************************************* Step 11: finished