mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
27 lines
453 B
C++
27 lines
453 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
|