mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-25 08:00:22 +00:00
31 lines
469 B
C++
31 lines
469 B
C++
#pragma once
|
|
|
|
#include <xrpl/beast/net/IPEndpoint.h>
|
|
|
|
#include <vector>
|
|
|
|
namespace xrpl::Resource {
|
|
|
|
/**
|
|
* Data format for exchanging consumption information across peers.
|
|
*/
|
|
struct Gossip
|
|
{
|
|
explicit Gossip() = default;
|
|
|
|
/**
|
|
* Describes a single consumer.
|
|
*/
|
|
struct Item
|
|
{
|
|
explicit Item() = default;
|
|
|
|
int balance{};
|
|
beast::IP::Endpoint address;
|
|
};
|
|
|
|
std::vector<Item> items;
|
|
};
|
|
|
|
} // namespace xrpl::Resource
|