mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Simplify check for replacebyfee=opt-in
This commit is contained in:
parent
d65dee961e
commit
3b66e54457
@ -1039,12 +1039,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
std::string strReplacementModeList = GetArg("-replacebyfee", ""); // default is impossible
|
std::string strReplacementModeList = GetArg("-replacebyfee", ""); // default is impossible
|
||||||
std::vector<std::string> vstrReplacementModes;
|
std::vector<std::string> vstrReplacementModes;
|
||||||
boost::split(vstrReplacementModes, strReplacementModeList, boost::is_any_of(","));
|
boost::split(vstrReplacementModes, strReplacementModeList, boost::is_any_of(","));
|
||||||
BOOST_FOREACH(const std::string& strReplacementMode, vstrReplacementModes) {
|
fEnableReplacement = (std::find(vstrReplacementModes.begin(), vstrReplacementModes.end(), "opt-in") != vstrReplacementModes.end());
|
||||||
if (strReplacementMode == "opt-in") {
|
|
||||||
fEnableReplacement = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
|
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
|
||||||
|
Loading…
Reference in New Issue
Block a user