Store the routing table in the database (part of #122) #186

Merged
clawbot merged 1 commits from issue-122-routes-table into next 2026-10-27 08:54:58 +01:00
1 Commits
Author SHA1 Message Date
sneak bab8d1b73c Store the routing table in the database (part of #122)
check / check (push) Waiting to run
A new routes table holds one row per prefix and origin AS: the peer set
as the bitset's bytes, and the two kept routes, each with its peer's
number, AS path and time in seconds. A new route_peers table holds each
peer's number and address.

WriteRouteChanges writes one TakeChanges result in a transaction.
ReadRouteTable reads both tables into a new routing table, through the
new Table.Load, which records no change. It fails on a row that names a
peer number missing from route_peers. Nothing uses them yet.

Model: opus-5-5
2026-10-27 07:39:19 +00:00