Skip to content

sgns::primitives::Authority

More...

#include <authority.hpp>

Public Functions

Name
bool operator==(const Authority & other) const
bool operator!=(const Authority & other) const

Public Attributes

Name
AuthorityId id
AuthorityWeight weight

Friends

Name
std::ostream & operator<<(std::ostream & out, const Authority & test_struct)

Detailed Description

struct sgns::primitives::Authority;

Authority, which participate in block production and finalization

Public Functions Documentation

function operator==

inline bool operator==(
    const Authority & other
) const

function operator!=

inline bool operator!=(
    const Authority & other
) const

Public Attributes Documentation

variable id

AuthorityId id;

variable weight

AuthorityWeight weight {};

Friends

friend operator<<

friend std::ostream & operator<<(
    std::ostream & out,

    const Authority & test_struct
);

Updated on 2026-03-04 at 13:10:43 -0800