aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-08-02 11:13:26 +0200
committerRiccardo Spagni <ric@spagni.net>2014-08-02 11:13:26 +0200
commitba99a8633319cf11e12c63b80a118588cf5c6aae (patch)
tree4d2fda0575eff0ae88d702c7c9e35cd3b1f8c4b3 /src/rpc
parentMerge pull request #64 from mikezackles/bytecoin_tx_pool_tmp (diff)
parent#36 make it compile and work properly (diff)
downloadmonero-ba99a8633319cf11e12c63b80a118588cf5c6aae.tar.xz
Merge pull request #73 from jakoblind/refresh_height
Optional height parameter for wallet refresh
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/core_rpc_server.cpp3
-rw-r--r--src/rpc/core_rpc_server_commands_defs.h3
2 files changed, 4 insertions, 2 deletions
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<std::pair<block, std::list<transaction> > > 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;
diff --git a/src/rpc/core_rpc_server_commands_defs.h b/src/rpc/core_rpc_server_commands_defs.h
index ac1d105fb..d711e1732 100644
--- a/src/rpc/core_rpc_server_commands_defs.h
+++ b/src/rpc/core_rpc_server_commands_defs.h
@@ -66,9 +66,10 @@ namespace cryptonote
struct request
{
std::list<crypto::hash> block_ids; //*first 10 blocks id goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block */
-
+ uint64_t start_height;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE_CONTAINER_POD_AS_BLOB(block_ids)
+ KV_SERIALIZE(start_height)
END_KV_SERIALIZE_MAP()
};