diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-16 22:44:41 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-16 22:44:41 +0200 |
commit | 8af1a89e4cf00c8755f0214e213992d8ff328f5c (patch) | |
tree | 8f6e958b2da8940df9874b5c42e29f916131c2b1 /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #5439 (diff) | |
parent | daemon: fix ratio not being floating point (diff) | |
download | monero-8af1a89e4cf00c8755f0214e213992d8ff328f5c.tar.xz |
Merge pull request #5441
b3648232 daemon: fix ratio not being floating point (moneromooo-monero)
e1b097b9 core_rpc_server: remove dummy assigning int to bool (moneromooo-monero)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index c45cb27f3..6df0772c3 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1406,11 +1406,9 @@ namespace cryptonote submit_req.push_back(boost::value_initialized<std::string>()); res.height = m_core.get_blockchain_storage().get_current_blockchain_height(); - bool r = CORE_RPC_STATUS_OK; - for(size_t i = 0; i < req.amount_of_blocks; i++) { - r = on_getblocktemplate(template_req, template_res, error_resp, ctx); + bool r = on_getblocktemplate(template_req, template_res, error_resp, ctx); res.status = template_res.status; template_req.prev_block.clear(); |