mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
20 lines
688 B
C
20 lines
688 B
C
#ifndef BLOCKCHAIN_OBJECTS_H
|
|
#define BLOCKCHAIN_OBJECTS_H
|
|
|
|
#include "cryptonote_core/blockchain.h"
|
|
#include "cryptonote_core/service_node_list.h"
|
|
#include "cryptonote_core/service_node_voting.h"
|
|
#include "cryptonote_core/tx_pool.h"
|
|
|
|
// NOTE(oxen): 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() :
|
|
m_blockchain(m_mempool, m_service_node_list),
|
|
m_service_node_list(m_blockchain),
|
|
m_mempool(m_blockchain) {}
|
|
};
|
|
|
|
#endif // BLOCKCHAIN_OBJECTS_H
|