Rearrange proof/service node forward declarations to help gcc-8

gcc-8's unique_ptr apparently isn't okay with a forward declared type.
This reverses how proof and service_node_list include/fwd declare each
other to get around it.
This commit is contained in:
Jason Rhinelander 2021-09-03 02:15:37 -03:00
parent 9782155c81
commit e3999ccb26
3 changed files with 9 additions and 7 deletions

View file

@ -38,6 +38,7 @@
#include "cryptonote_core/service_node_voting.h"
#include "cryptonote_core/service_node_quorum_cop.h"
#include "common/util.h"
#include "uptime_proof.h"
namespace cryptonote
{
@ -46,11 +47,6 @@ class BlockchainDB;
struct checkpoint_t;
}; // namespace cryptonote
namespace uptime_proof
{
class Proof;
}
namespace service_nodes
{
constexpr uint64_t INVALID_HEIGHT = static_cast<uint64_t>(-1);

View file

@ -1,4 +1,5 @@
#include "uptime_proof.h"
#include "service_node_list.h"
#include "common/string_util.h"
#include "version.h"

View file

@ -1,9 +1,14 @@
#pragma once
#include "service_node_list.h"
#include "../cryptonote_protocol/cryptonote_protocol_defs.h"
#include "cryptonote_protocol/cryptonote_protocol_defs.h"
#include <oxenmq/bt_serialize.h>
namespace service_nodes {
struct service_node_keys;
}
namespace uptime_proof
{