Skip to main content

Module sightings

Module sightings 

Source
Expand description

Which relays a note was seen on: every relay that sent it, for as long as the applet has been running.

A note comes from as many relays as have it, and is one note all the same. Which relays those were says how far it went, and where someone else can find it. The event store doesn’t keep that, so it is kept here, in memory: a note read from the store has been seen nowhere until a relay sends it again.

There are few relays and many notes, so each note has a bit for every relay rather than a list of them.

Structs§

Sightings
Which relays each note was seen on.

Constants§

MAX_RELAYS 🔒
How many relays can be told apart: as many as a note has bits. A relay past that many is not kept track of.