Simplify check for replacebyfee=opt-in
This commit is contained in:
parent
e8d19ab79f
commit
5f456a6546
@ -1024,12 +1024,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
std::string strReplacementModeList = GetArg("-replacebyfee", ""); // default is impossible
|
||||
std::vector<std::string> vstrReplacementModes;
|
||||
boost::split(vstrReplacementModes, strReplacementModeList, boost::is_any_of(","));
|
||||
BOOST_FOREACH(const std::string& strReplacementMode, vstrReplacementModes) {
|
||||
if (strReplacementMode == "opt-in") {
|
||||
fEnableReplacement = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
fEnableReplacement = (std::find(vstrReplacementModes.begin(), vstrReplacementModes.end(), "opt-in") != vstrReplacementModes.end());
|
||||
}
|
||||
|
||||
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
|
||||
|
Loading…
Reference in New Issue
Block a user