aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-23 19:28:00 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-23 19:28:00 +0000
commita39cd745c9c373ade9d7eddabd034aa77aeb38a2 (patch)
treec901c57b8078b139cdbb6c633fe18e477457f615
parentMerge pull request #1608 (diff)
downloadmonero-a39cd745c9c373ade9d7eddabd034aa77aeb38a2.tar.xz
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.
-rw-r--r--src/daemon/rpc_command_executor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 8558ebc17..7bc9afbb9 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()))