Commit Graph
6 Commits
Author SHA1 Message Date
Ben_Kosytorz f2f3609b87 Add sn-node daemon: supervise yggdrasil sidecar + in-process exit
sn-node daemon [--config node.toml] [--check] runs one household node
from a validated TOML config: generates the yggdrasil config with a
persistent node key in the state dir (PrivateKeyPath takes precedence
per the yggdrasil config reference, so the identity survives restarts),
waits for the overlay address via the admin socket, then serves the
sn-exit proxy in-process (or runs overlay-only in leech mode).
SIGINT/SIGTERM stop the accept loop, SIGTERM the sidecar (5s grace,
then SIGKILL); unexpected sidecar death shuts the daemon down with an
error. sn-exit gains an additive serve_until() with a shutdown future;
serve() keeps its behavior. Workspace: tokio gains process+signal,
serde/toml added. 73 tests green, clippy clean.
2026-09-24 20:12:44 +02:00
Ben_Kosytorz ecf8848ca4 Add sn-fair v0: weighted max-min fairness scheduler with leech policy
Two-class allocation engine: contributors (configurable weight) get
weighted max-min shares of the pooled capacity, leeches (receive-only,
explicitly allowed) share the leftover capacity. Deterministic u128
arithmetic, validated newtypes, demo CLI in Mbit/s for the pilot
Soll/Ist comparison. 19 tests, workspace clippy clean.
2026-09-24 18:46:38 +02:00
Ben_Kosytorz afaeb76f6f sn-exit v0: quota-controlled uplink proxy (byte relay, CONNECT, SSRF guard) 2026-09-24 16:59:08 +02:00
Ben_Kosytorz c422deee7c sn-node: Yggdrasil config generation and admin socket client (genconf, status) 2026-09-24 15:58:12 +02:00
Ben_Kosytorz f4e614acce Deny unwrap/expect/panic via workspace lints; fix pedantic warnings 2026-09-24 14:04:03 +02:00
Ben_Kosytorz 9a61452931 sn-fetch PoC: range probe, weighted planner, parallel segments, reassembly + sha256 2026-09-24 13:53:35 +02:00