From f0ef9d1d4d8ec7dda1bf7f22bdbed14839e42402 Mon Sep 17 00:00:00 2001 From: Zachary Michaels Date: Tue, 24 Jun 2014 22:50:46 +0000 Subject: [PATCH] Fix blockchain info RPC Forgot to pass arguments --- src/daemon/rpc_command_executor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index c841e98ca..21053aaaf 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -159,6 +159,9 @@ bool t_rpc_command_executor::print_blockchain_info(uint64_t start_block_index, u cryptonote::COMMAND_RPC_GET_BLOCK_HEADERS_RANGE::request req; cryptonote::COMMAND_RPC_GET_BLOCK_HEADERS_RANGE::response res; + req.start_height = start_block_index; + req.end_height = end_block_index; + if (json_rpc_request(req, res, "getblockheadersrange", "Unsuccessful")) { for (auto & header : res.headers) @@ -168,7 +171,7 @@ bool t_rpc_command_executor::print_blockchain_info(uint64_t start_block_index, u << ", cumul_dif " << header.cumulative_difficulty << ", cumul_size " << header.cumulative_size << std::endl << "id " << header.hash << std::endl - << "difficulty" << header.difficulty + << "difficulty " << header.difficulty << ", nonce " << header.nonce << ", tx_count " << header.tx_count << std::endl; }