mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-02 03:40:12 +00:00
29 lines
574 B
C++
29 lines
574 B
C++
#ifndef LLARP_DHT_MESSAGES_CONSENSUS_HPP
|
|
#define LLARP_DHT_MESSAGES_CONSENSUS_HPP
|
|
#include <dht/message.hpp>
|
|
#include <router_version.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace dht
|
|
{
|
|
struct ConsensusMessage
|
|
{
|
|
/// H
|
|
ShortHash m_Hash;
|
|
/// K
|
|
std::vector< RouterID > m_Keys;
|
|
/// N
|
|
uint64_t m_NumberOfEntries;
|
|
/// O
|
|
uint64_t m_EntryOffset;
|
|
/// T
|
|
uint64_t m_TxID;
|
|
/// U
|
|
llarp_time_t m_NextUpdateRequired;
|
|
/// V
|
|
RouterVersion m_RotuerVersion;
|
|
};
|
|
} // namespace dht
|
|
} // namespace llarp
|