Skip to content

Commit

Permalink
MN: Fix issue bitcoin#22 with masternode.conf not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
AltcoinBaggins authored and uhliksk committed May 1, 2019
1 parent 3393d47 commit d98fee4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/bitcoind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include <walletinitinterface.h>

#include <stdio.h>
// VELES BEGIN
#include <masternodeconfig.h>
// VELES END

/* Introduction text for doxygen: */

Expand Down Expand Up @@ -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])) {
Expand Down

0 comments on commit d98fee4

Please sign in to comment.