danicoin/src/CryptoNoteCore/CryptoNoteStatInfo.h

28 lines
675 B
C
Raw Normal View History

// Copyright (c) 2011-2016 The Cryptonote developers
2014-03-03 22:07:58 +00:00
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
2015-07-30 15:22:07 +00:00
#include "Serialization/ISerializer.h"
2014-03-03 22:07:58 +00:00
2015-05-27 12:08:46 +00:00
namespace CryptoNote
2014-03-03 22:07:58 +00:00
{
struct core_stat_info
{
uint64_t tx_pool_size;
uint64_t blockchain_height;
uint64_t mining_speed;
uint64_t alternative_blocks;
std::string top_block_id_str;
2015-07-15 12:23:00 +00:00
void serialize(ISerializer& s) {
KV_MEMBER(tx_pool_size)
KV_MEMBER(blockchain_height)
KV_MEMBER(mining_speed)
KV_MEMBER(alternative_blocks)
KV_MEMBER(top_block_id_str)
}
2014-03-03 22:07:58 +00:00
};
}