From e4273f24153ca5222ab0af6ea6d84b7761e31f05 Mon Sep 17 00:00:00 2001 From: Jakob Lind Date: Fri, 1 Aug 2014 10:17:50 +0200 Subject: #36 simplewallet refresh include optional height param height param is used optionally in refresh command TODO: This should also be the default behaviour when generating a new wallet. --- src/rpc/core_rpc_server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rpc/core_rpc_server.cpp') diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index f0cb4a8af..c74203cc3 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -125,7 +125,8 @@ namespace cryptonote { CHECK_CORE_BUSY(); std::list > > bs; - if(!m_core.find_blockchain_supplement(req.block_ids, bs, res.current_height, res.start_height, COMMAND_RPC_GET_BLOCKS_FAST_MAX_COUNT)) + + if(!m_core.find_blockchain_supplement(req.start_height, req.block_ids, bs, res.current_height, res.start_height, COMMAND_RPC_GET_BLOCKS_FAST_MAX_COUNT)) { res.status = "Failed"; return false; -- cgit v1.2.3