Relay marks count every repeater; near relays are gone

The first build counted only the relays past the first hops of the
outbound paths. On JP's Public channel, 23 of 23 sent messages came back
only through the two home repeaters: each repeater relays one time, and
the next hop (8 km away) is too far for the companion to hear. So every
message showed the warning mark, and nothing was ever confirmed.

Now each repeater that sends a copy back counts, the same as a DM ack:
spinner, then a check with the number of repeaters, or a cross. The
warning state, the near-relay snapshot of each send, the ^P atom, and
heard_via are removed. heard_relays keeps only the paths; a database with
the first build of the table gets it made again (derived data only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Opus 5.5 committed 2026-11-20 21:21:11 -05:00
1 parent f4b1d659d1
commit 5dc62cdc5b
13 files changed
+164 -379

No files matched your search

+4 -4
View File
@@ -332,10 +332,10 @@ PREFERENCES: tuple[PrefSpec, ...] = (
help="Wait this long for a relay of a channel message",
group="Sending",
value_type="int",
# A channel message that we sent shows a spinner until a relay that is not a near
# relay sends a copy back, or until this wait is over. Then it shows ⚠ (only near
# relays) or ✗ (no copy). A flood goes out through the mesh in seconds, and 30 s
# also covers a busy channel (refer to meshterm.services.heard_by).
# A channel message that we sent shows a spinner until a repeater sends a copy
# back, or until this wait is over. Then it shows ✗ (no copy). A repeater relays
# in seconds, and 30 s also covers a busy channel (refer to
# meshterm.services.heard_by).
default=30,
minimum=5,
maximum=600,