File tree Expand file tree Collapse file tree 3 files changed +8
-16
lines changed
Expand file tree Collapse file tree 3 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,6 @@ bool AppInit(int argc, char* argv[])
9292 return false ;
9393 }
9494
95- // parse masternode.conf
96- std::string strErr;
97- if (!masternodeConfig.read (strErr)) {
98- fprintf (stderr, " Error reading masternode configuration file: %s\n " , strErr.c_str ());
99- return false ;
100- }
101-
10295 // Error out when loose non-argument tokens are encountered on command line
10396 for (int i = 1 ; i < argc; i++) {
10497 if (!IsSwitchChar (argv[i][0 ])) {
Original file line number Diff line number Diff line change 1414#include " fs.h"
1515#include " guiinterface.h"
1616#include " init.h"
17- #include " masternodeconfig.h"
1817#include " net.h"
1918#include " qt/clientmodel.h"
2019#include " qt/guiconstants.h"
@@ -654,14 +653,6 @@ int main(int argc, char* argv[])
654653 app.updateTranslation ();
655654
656655#ifdef ENABLE_WALLET
657- // / 7a. parse masternode.conf
658- std::string strErr;
659- if (!masternodeConfig.read (strErr)) {
660- QMessageBox::critical (nullptr , PACKAGE_NAME,
661- QObject::tr (" Error reading masternode configuration file: %1" ).arg (strErr.c_str ()));
662- return 0 ;
663- }
664-
665656 // / 8. URI IPC sending
666657 // - Do this early as we don't want to bother initializing if we are just calling IPC
667658 // - Do this *after* setting up the data directory, as the data directory hash is used in the name
Original file line number Diff line number Diff line change @@ -115,6 +115,14 @@ bool LoadTierTwo(int chain_active_height, bool fReindexChainState)
115115 LogPrintf (" Error reading mnpayments.dat - cached data discarded\n " );
116116 }
117117
118+ // ###################################### //
119+ // ## Legacy Parse 'masternodes.conf' ## //
120+ // ###################################### //
121+ std::string strErr;
122+ if (!masternodeConfig.read (strErr)) {
123+ return UIError (strprintf (_ (" Error reading masternode configuration file: %s" ), strErr));
124+ }
125+
118126 // ############################## //
119127 // ## Net MNs Metadata Manager ## //
120128 // ############################## //
You can’t perform that action at this time.
0 commit comments