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.
This commit is contained in:
parent
daf66621dc
commit
a39cd745c9
1 changed files with 1 additions and 0 deletions
|
@ -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()))
|
||||
|
|
Loading…
Reference in a new issue