mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
8af377d2b8
* Unify checkpointing and uptime quorums * Begin making checkpoints cull old votes/checkpoints * Begin rehaul of service node code out of core, to assist checkpoints * Begin overhaul of votes to move resposibility into quorum_cop * Update testing suite to work with the new system * Remove vote culling from checkpoints and into voting_pool * Fix bugs making integration deregistration fail * Votes don't always specify an index in the validators * Update tests for validator index member change * Rename deregister to voting, fix subtle hashing bug Update the deregister hash derivation to use uint32_t as originally set not uint64_t otherwise this affects the result and produces different results. * Remove un-needed nettype from vote pool * PR review, use <algorithms> * Rename uptime_deregister/uptime quorums to just deregister quorums * Remove unused add_deregister_vote, move side effect out of macro
21 lines
656 B
C
21 lines
656 B
C
#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"
|
|
#include "cryptonote_core/service_node_voting.h"
|
|
|
|
// 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() :
|
|
m_blockchain(m_mempool, m_service_node_list),
|
|
m_service_node_list(m_blockchain),
|
|
m_mempool(m_blockchain) { }
|
|
};
|
|
|
|
#endif // BLOCKCHAIN_OBJECTS_H
|