aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/command_parser_executor.cpp')
-rw-r--r--src/daemon/command_parser_executor.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp
index 087a4e48b..0c091c7ed 100644
--- a/src/daemon/command_parser_executor.cpp
+++ b/src/daemon/command_parser_executor.cpp
@@ -1063,7 +1063,7 @@ bool t_command_parser_executor::set_bootstrap_daemon(const std::vector<std::stri
bool t_command_parser_executor::flush_cache(const std::vector<std::string>& args)
{
- bool bad_txs = false, bad_blocks = false;
+ bool bad_blocks = false;
std::string arg;
if (args.empty())
@@ -1072,18 +1072,16 @@ bool t_command_parser_executor::flush_cache(const std::vector<std::string>& args
for (size_t i = 0; i < args.size(); ++i)
{
arg = args[i];
- if (arg == "bad-txs")
- bad_txs = true;
- else if (arg == "bad-blocks")
+ if (arg == "bad-blocks")
bad_blocks = true;
else
goto show_list;
}
- return m_executor.flush_cache(bad_txs, bad_blocks);
+ return m_executor.flush_cache(bad_blocks);
show_list:
std::cout << "Invalid cache type: " << arg << std::endl;
- std::cout << "Cache types: bad-txs bad-blocks" << std::endl;
+ std::cout << "Cache types: bad-blocks" << std::endl;
return true;
}