From bc63fbf8f17e8ad580f1b1d1aa1d1ec12a7028b9 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Wed, 7 Oct 2026 18:19:02 +0000 Subject: [PATCH] /live on Devnet 3 (the project lead's word through main, 7 October 2026): /api/live reads the dn3_ tables by default (dn3_live_blocks, dn3_live_state, dn3_live_events, dn3_live_checkpoints, dn3_live_proofs: the igneum-observer-dn3 unit on build-1 writes them to the same Neon database; LIVE_TABLE_PREFIX still overrides, an empty value reads the first devnet's), and the page's devnet pill names igneum-devnet-3 and chain id 4463; nothing else on the site changes. The observer's RPC ports are loopback on build-1 and ufw opens only the p2p port 26651, so the feed stays on Neon; the page shows no observer address. Deployed site-only from the box by the build-server lane after the first finality lock Co-Authored-By: Claude Fable 5.1 --- site/api/live.mjs | 5 +++-- site/live.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/site/api/live.mjs b/site/api/live.mjs index 9450c5b43..04fb73cb9 100644 --- a/site/api/live.mjs +++ b/site/api/live.mjs @@ -2,11 +2,12 @@ // {now, state (incl. height = chain block number), blocks (last 90 s, or ?window=N up to 1800, at most 1,800 blocks), miners (last 10 min), events (last 30), finality (checkpoints, newest lock), // proving (activation and 10-minute counts; every chain block carries shards: [{i, state, prover, lag, payout}])}. // Five queries, all on indexed columns. Cached one second at the edge. -// LIVE_TABLE_PREFIX (default empty) reads a test observer's tables (fintest_live_*, provtest_live_*) instead of the devnet's. +// LIVE_TABLE_PREFIX (default dn3_: Devnet 3, the igneum-observer-dn3 unit on build-1, chain id 4463, igneum-devnet-3, from +// 7 October 2026 evening on the project lead's word) reads another observer's tables (empty = the first devnet's, fintest_live_*, provtest_live_*). // Zero dependencies: Neon's HTTP SQL endpoint over Node's built-in fetch. const STALE_AFTER_S = 30; -const T = (process.env.LIVE_TABLE_PREFIX || '').replace(/[^a-z0-9_]/gi, ''); +const T = (process.env.LIVE_TABLE_PREFIX === undefined ? 'dn3_' : process.env.LIVE_TABLE_PREFIX).replace(/[^a-z0-9_]/gi, ''); function neon() { const url = process.env.DATABASE_URL; diff --git a/site/live.html b/site/live.html index 508385351..1dd07d165 100644 --- a/site/live.html +++ b/site/live.html @@ -222,7 +222,7 @@ details.tablebar summary{display:flex;align-items:center} IGNEUM - devnet + devnet