From d98fee40ba6e39b65f1142c7ee061b9b6db88e63 Mon Sep 17 00:00:00 2001 From: AltcoinBaggins Date: Tue, 19 Feb 2019 00:33:48 +0100 Subject: [PATCH] MN: Fix issue #22 with masternode.conf not loading --- src/bitcoind.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 51d8e7013ec70..a7f1aaaf8aacf 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -23,6 +23,9 @@ #include #include +// VELES BEGIN +#include +// VELES END /* Introduction text for doxygen: */ @@ -107,6 +110,17 @@ static bool AppInit(int argc, char* argv[]) return false; } + // VELES BEGIN + // Dash + // parse masternode.conf + std::string strErr; + if(!masternodeConfig.read(strErr)) { + fprintf(stderr,"Error reading masternode configuration file: %s\n", strErr.c_str()); + return false; + } + // + // VELES END + // Error out when loose non-argument tokens are encountered on command line for (int i = 1; i < argc; i++) { if (!IsSwitchChar(argv[i][0])) {