llarp::RCGossiper

Inherits from llarp::I_RCGossiper

Public Functions

Name
RCGossiper()
~RCGossiper() override =default
virtual bool GossipRC(const RouterContact & rc) override
try goissping RC return false if we hit a cooldown for this rc return true if we gossiped this rc to at least 1 peer
virtual void Decay(Time_t now) override
virtual bool ShouldGossipOurRC(Time_t now) const override
return true if we should gossip our RC now
virtual bool IsOurRC(const RouterContact & rc) const override
return true if that rc is owned by us
void Init(ILinkManager * , const RouterID & , AbstractRouter * )
virtual void Forget(const RouterID & router) override
forget the replay filter entry given pubkey
virtual TimePoint_t NextGossipAt() const override
returns the time point when we will send our next gossip at
virtual std::optional< TimePoint_t > LastGossipAt() const override
returns the time point when we sent our last gossip at or nullopt if we never did

Additional inherited members

Public Types inherited from llarp::I_RCGossiper

Name
using Duration_t Time_t

Public Functions inherited from llarp::I_RCGossiper

Name
virtual ~I_RCGossiper() =default

Public Functions Documentation

function RCGossiper

RCGossiper()

function ~RCGossiper

~RCGossiper() override =default

function GossipRC

virtual bool GossipRC(
    const RouterContact & rc
) override

try goissping RC return false if we hit a cooldown for this rc return true if we gossiped this rc to at least 1 peer

Reimplements: llarp::I_RCGossiper::GossipRC

function Decay

virtual void Decay(
    Time_t now
) override

Reimplements: llarp::I_RCGossiper::Decay

function ShouldGossipOurRC

virtual bool ShouldGossipOurRC(
    Time_t now
) const override

return true if we should gossip our RC now

Reimplements: llarp::I_RCGossiper::ShouldGossipOurRC

function IsOurRC

virtual bool IsOurRC(
    const RouterContact & rc
) const override

return true if that rc is owned by us

Reimplements: llarp::I_RCGossiper::IsOurRC

function Init

void Init(
    ILinkManager * ,
    const RouterID & ,
    AbstractRouter * 
)

function Forget

virtual void Forget(
    const RouterID & router
) override

forget the replay filter entry given pubkey

Reimplements: llarp::I_RCGossiper::Forget

function NextGossipAt

virtual TimePoint_t NextGossipAt() const override

returns the time point when we will send our next gossip at

Reimplements: llarp::I_RCGossiper::NextGossipAt

function LastGossipAt

virtual std::optional< TimePoint_t > LastGossipAt() const override

returns the time point when we sent our last gossip at or nullopt if we never did

Reimplements: llarp::I_RCGossiper::LastGossipAt


Updated on 2026-01-10 at 22:49:45 +0000