diff --git a/src/darkcoind.cpp b/src/darkcoind.cpp index db123c0e5d27..ddd7e1c3d44f 100644 --- a/src/darkcoind.cpp +++ b/src/darkcoind.cpp @@ -81,7 +81,7 @@ bool AppInit(int argc, char* argv[]) } std::string strErr; - if(!masternodeConfig.read(GetMasternodeConfigFile(), strErr)) { + if(!masternodeConfig.read(strErr)) { fprintf(stderr,"Error reading masternode configuration file: %s\n", strErr.c_str()); return false; } diff --git a/src/masternodeconfig.cpp b/src/masternodeconfig.cpp index 5dbfdf1c1dfb..6471d54e84ae 100644 --- a/src/masternodeconfig.cpp +++ b/src/masternodeconfig.cpp @@ -8,7 +8,7 @@ void CMasternodeConfig::add(std::string alias, std::string ip, std::string privK entries.push_back(cme); } -bool CMasternodeConfig::read(boost::filesystem::path path, std::string& strErr) { +bool CMasternodeConfig::read(std::string& strErr) { boost::filesystem::ifstream streamConfig(GetMasternodeConfigFile()); if (!streamConfig.good()) { return true; // No masternode.conf file is OK diff --git a/src/masternodeconfig.h b/src/masternodeconfig.h index bdd57fcca089..c5afb68e4c6c 100644 --- a/src/masternodeconfig.h +++ b/src/masternodeconfig.h @@ -84,7 +84,7 @@ class CMasternodeConfig } void clear(); - bool read(boost::filesystem::path path, std::string& strErr); + bool read(std::string& strErr); void add(std::string alias, std::string ip, std::string privKey, std::string txHash, std::string outputIndex); std::vector& getEntries() { diff --git a/src/qt/darkcoin.cpp b/src/qt/darkcoin.cpp index 85490417d7b2..141a26198f80 100644 --- a/src/qt/darkcoin.cpp +++ b/src/qt/darkcoin.cpp @@ -535,7 +535,7 @@ int main(int argc, char *argv[]) } string strErr; - if(!masternodeConfig.read(GetMasternodeConfigFile(), strErr)) { + if(!masternodeConfig.read(strErr)) { QMessageBox::critical(0, QObject::tr("Darkcoin"), QObject::tr("Error reading masternode configuration file: %1").arg(strErr.c_str())); return false;