diff options
| author | Adam Soltys <[email protected]> | 2026-08-28 20:56:15 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-28 20:56:15 -0700 |
| commit | 5800bead1727e5f61e433603d52e67bee863612a (patch) | |
| tree | 6cc5621787513c1b042d41043e17d7f6f3de08fc | |
| parent | b0f3986df89f3992ffe1bafe2940d8e5e45b6d58 (diff) | |
| download | coinosv3-server-5800bead1727e5f61e433603d52e67bee863612a.tar.gz coinosv3-server-5800bead1727e5f61e433603d52e67bee863612a.zip | |
A name the registrar no longer grants is a costume: the wallet verifies its cached name against the record's owner and manager keys each refresh, shedding stale ones (an evicted squat once lingered in the squatter's UI) — the /name endpoint now names the manager too
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi
| -rw-r--r-- | names/server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/names/server.js b/names/server.js index e713ff4..406bcf2 100644 --- a/names/server.js +++ b/names/server.js @@ -753,7 +753,7 @@ Bun.serve({ if (m && req.method === 'GET') { const domain = (url.searchParams.get('domain') || DOMAIN).toLowerCase(); const rec = state.names[`${m[1]}@${domain}`]; - if (rec) return json({ name: m[1], domain, taken: true, pubkey: rec.pubkey, uri: rec.uri }); + if (rec) return json({ name: m[1], domain, taken: true, pubkey: rec.pubkey, manager: rec.manager || null, uri: rec.uri }); const reserved = RESERVED.has(m[1]) || !NAME_RE.test(m[1]) || await takenByCoinosUser(domain, m[1]); return json({ name: m[1], domain, taken: reserved, reserved }); } |
