Browse Source

Simplify check for replacebyfee=opt-in

tags/v0.15.1
Luke Dashjr 5 years ago
parent
commit
3b66e54457
1 changed files with 1 additions and 6 deletions
  1. 1
    6
      src/init.cpp

+ 1
- 6
src/init.cpp View File

@@ -1039,12 +1039,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…
Cancel
Save