Skip to main content

community_relay_capabilities

Function community_relay_capabilities 

Source
pub fn community_relay_capabilities() -> RelayCapabilities
Expand description

Capabilities for a Community / “external” relay: GOSSIP only.

GOSSIP is read/write-capable when TARGETED — can_read() is READ|GOSSIP|DISCOVERY and can_write() is WRITE|GOSSIP, so per-relay targeted ops pass. But pool-wide ops select READ-only / WRITE-only relays, so the DM/giftwrap subscription and the user’s outbox skip GOSSIP relays — the user’s own traffic never touches relays they don’t own.

No PING counterpart any more: 0.45 demoted PING from a capability flag to a per-relay option (AddRelay::ping) that already defaults to true, with sleep_when_idle defaulting to false. The 24/7 keepalive this used to buy is now the default, so it doesn’t belong in the capability set.