rpc: add version to get_info

This commit is contained in:
Jethro Grassie 2018-11-20 13:18:08 -05:00
parent 84dd674cd0
commit 517f25efd1
No known key found for this signature in database
GPG key ID: DE8ED755616565BB
5 changed files with 11 additions and 1 deletions

View file

@ -34,6 +34,7 @@
#include "cryptonote_basic/cryptonote_format_utils.h"
#include "cryptonote_basic/blobdatatype.h"
#include "ringct/rctSigs.h"
#include "version.h"
namespace cryptonote
{
@ -437,6 +438,7 @@ namespace rpc
res.info.block_size_limit = res.info.block_weight_limit = m_core.get_blockchain_storage().get_current_cumulative_block_weight_limit();
res.info.block_size_median = res.info.block_weight_median = m_core.get_blockchain_storage().get_current_cumulative_block_weight_median();
res.info.start_time = (uint64_t)m_core.get_start_time();
res.info.version = MONERO_VERSION;
res.status = Message::STATUS_OK;
res.error_details = "";