From a39cd745c9c373ade9d7eddabd034aa77aeb38a2 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 23 Jan 2017 19:28:00 +0000 Subject: [PATCH] rpc: fix bc_dyn_stats not setting grace blocks This caused a random value to be used, and the resulting incorrect fee when it wasn't 0. --- src/daemon/rpc_command_executor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index 8558ebc1..7bc9afbb 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -1451,6 +1451,7 @@ bool t_rpc_command_executor::print_blockchain_dynamic_stats(uint64_t nblocks) std::string fail_message = "Problem fetching info"; + fereq.grace_blocks = 0; if (m_is_rpc) { if (!m_rpc_client->rpc_request(ireq, ires, "/getinfo", fail_message.c_str()))