Every command
oas relay serve
Run a relay: an append-only mailbox members post to when the host won't log a message.
$ oas relay serve [flags]
When the host refuses a message the rules allow, doesn't answer, or doesn't log it within a minute, the member's bridge posts it here and keeps resending it to the host. A message the host still leaves out a minute of drand rounds later is a failure proof every member holds (CENSORED), and a proposal that closed without a vote the relay held on time is flagged DISPUTED.
A relay takes signed messages from any key for any swarm, so it bounds what it keeps; a limit of 0 means its default, never unlimited. A post past a limit is refused (507 out of room, 429 over a key's share), entries are never deleted, and a member's bridge treats a full relay as one it can't reach. Its name is fixed once set and is part of its verifier key.
Flags
Each takes one dash or two, and its value after a space or =. A switch is on by itself, or =false.
The relay
data folder
Default
oas-relayrelay name (fixed once set; part of the key it signs receipts with)
listen address
Default
:8093where to read the drand quicknet beacon
Default
https://api.drand.sh/52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971
Its limits
most swarms it keeps a mailbox for; it takes no new swarm past it (0: the default)
Default
1000most bytes all mailboxes may hold (0: the default)
Default
1073741824= 1 GiBmost bytes one swarm's mailbox may hold (0: the default)
Default
67108864= 64 MiBmost entries one swarm's mailbox may hold (0: the default)
Default
50000
Examples
$ oas relay serve --dir /var/lib/oas/relay --name team-relay --listen :8093
Room for a busier swarm's mailbox.
$ oas relay serve --dir /var/lib/oas/relay --name team-relay --max-swarm-bytes 268435456
See also
Read from the CLI: each flag's type, default and usage are its flag set's own, and a test fails when this page and the code disagree.