aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2016-01-29 01:28:54 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2016-01-29 01:28:54 +0000
commit3b66e54457cdfe1f5ffda016d42c23fe848d539c (patch)
treeabfb4f9ec7e916a0dc21a2e99f1a4d15c76b3792 /src/init.cpp
parentd65dee961e39937e3e671c742ff8db32612ad9af (diff)
Simplify check for replacebyfee=opt-in
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 547e94ad61..80b014eb98 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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