diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2016-01-29 01:28:54 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2016-01-29 01:31:55 +0000 |
commit | 5f456a65467417629e104ea412b98aeabfaae1f8 (patch) | |
tree | e638eef9d4b6ea34cfa27ff3dbe68025ee38a5ee /src/init.cpp | |
parent | e8d19ab79f9367d3adb43fb041b26f78f0f38eb3 (diff) |
Simplify check for replacebyfee=opt-in
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/init.cpp b/src/init.cpp index 291487a950..078fdda34d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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 |