2018-12-19 02:25:48 +01:00
|
|
|
#ifndef BLOCKCHAIN_OBJECTS_H
|
|
|
|
#define BLOCKCHAIN_OBJECTS_H
|
|
|
|
|
|
|
|
#include "cryptonote_core/blockchain.h"
|
|
|
|
#include "cryptonote_core/tx_pool.h"
|
|
|
|
#include "cryptonote_core/service_node_list.h"
|
2019-05-31 03:06:42 +02:00
|
|
|
#include "cryptonote_core/service_node_voting.h"
|
2018-12-19 02:25:48 +01:00
|
|
|
|
|
|
|
// NOTE(loki): This is done this way because of the circular constructors.
|
|
|
|
struct blockchain_objects_t
|
|
|
|
{
|
|
|
|
cryptonote::Blockchain m_blockchain;
|
|
|
|
cryptonote::tx_memory_pool m_mempool;
|
|
|
|
service_nodes::service_node_list m_service_node_list;
|
|
|
|
blockchain_objects_t() :
|
2019-05-31 03:06:42 +02:00
|
|
|
m_blockchain(m_mempool, m_service_node_list),
|
2018-12-19 02:25:48 +01:00
|
|
|
m_service_node_list(m_blockchain),
|
|
|
|
m_mempool(m_blockchain) { }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BLOCKCHAIN_OBJECTS_H
|