From a4dc575ccba8348886ed19594a16f5a7242f8fe6 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 22 Oct 2019 15:28:08 +0000 Subject: rpc: add a flush_cache RPC This allows flushing internal caches (for now, the bad tx cache, which will allow debugging a stuck monerod after it has failed to verify a transaction in a block, since it would otherwise not try again, making subsequent log changes pointless) --- src/daemon/command_parser_executor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/daemon/command_parser_executor.h') diff --git a/src/daemon/command_parser_executor.h b/src/daemon/command_parser_executor.h index 5c94c540e..8b85dcf69 100644 --- a/src/daemon/command_parser_executor.h +++ b/src/daemon/command_parser_executor.h @@ -154,6 +154,8 @@ public: bool print_net_stats(const std::vector& args); bool set_bootstrap_daemon(const std::vector& args); + + bool flush_cache(const std::vector& args); }; } // namespace daemonize -- cgit v1.2.3