mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 09:40:39 -04:00
rpc: add version to get_info
This commit is contained in:
parent
84dd674cd0
commit
517f25efd1
5 changed files with 11 additions and 1 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue