@@ -92,8 +92,6 @@ const char * const BITCOIN_CONF_FILENAME = "bitcoin.conf";
92
92
const char * const BITCOIN_PID_FILENAME = " bitcoind.pid" ;
93
93
94
94
ArgsManager gArgs ;
95
- static std::map<std::string, std::vector<std::string> > _mapMultiArgs;
96
- const std::map<std::string, std::vector<std::string> >& mapMultiArgs = _mapMultiArgs;
97
95
bool fPrintToConsole = false ;
98
96
bool fPrintToDebugLog = true ;
99
97
@@ -386,7 +384,7 @@ void ArgsManager::ParseParameters(int argc, const char* const argv[])
386
384
{
387
385
LOCK (cs_args);
388
386
mapArgs.clear ();
389
- _mapMultiArgs .clear ();
387
+ mapMultiArgs .clear ();
390
388
391
389
for (int i = 1 ; i < argc; i++)
392
390
{
@@ -414,7 +412,7 @@ void ArgsManager::ParseParameters(int argc, const char* const argv[])
414
412
InterpretNegativeSetting (str, strValue);
415
413
416
414
mapArgs[str] = strValue;
417
- _mapMultiArgs [str].push_back (strValue);
415
+ mapMultiArgs [str].push_back (strValue);
418
416
}
419
417
}
420
418
@@ -459,7 +457,7 @@ bool ArgsManager::SoftSetArg(const std::string& strArg, const std::string& strVa
459
457
LOCK (cs_args);
460
458
if (mapArgs.count (strArg))
461
459
return false ;
462
- mapArgs[ strArg] = strValue;
460
+ ForceSetArg ( strArg, strValue) ;
463
461
return true ;
464
462
}
465
463
@@ -475,6 +473,7 @@ void ArgsManager::ForceSetArg(const std::string& strArg, const std::string& strV
475
473
{
476
474
LOCK (cs_args);
477
475
mapArgs[strArg] = strValue;
476
+ mapMultiArgs[strArg].push_back (strValue);
478
477
}
479
478
480
479
@@ -612,7 +611,7 @@ void ArgsManager::ReadConfigFile(const std::string& confPath)
612
611
InterpretNegativeSetting (strKey, strValue);
613
612
if (mapArgs.count (strKey) == 0 )
614
613
mapArgs[strKey] = strValue;
615
- _mapMultiArgs [strKey].push_back (strValue);
614
+ mapMultiArgs [strKey].push_back (strValue);
616
615
}
617
616
}
618
617
// If datadir is changed in .conf file:
0 commit comments