aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-11-12 09:41:35 -0700
committerAdam Soltys <[email protected]>2026-11-12 09:41:35 -0700
commit71658292e403784b42d0cc82b801cbb5ac611331 (patch)
treefe89ea5f79a8a65ab56f82145d98c83da22c6d9b
parentf8c9efa8d1fab36ded9fa525c0ed56cd16ae5345 (diff)
downloadcoinosv3-server-71658292e403784b42d0cc82b801cbb5ac611331.tar.gz
coinosv3-server-71658292e403784b42d0cc82b801cbb5ac611331.zip
names: paff.club, a domain without the coinos welcome DM. Each PAFF node gets a lightning address and NIP-05 under paff.club from this registrar (Adam, 2026-11-12: "re-use the same name server that's on the cs machine for v3 and let it handle paff.club name lookups"). A domain's config entry may say welcome: false; paff.club does, since a node claims its own name and there's nobody to greet
Co-Authored-By: Claude Opus 5.5 <[email protected]>
-rw-r--r--names/server.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/names/server.js b/names/server.js
index 4d497c5..907efb1 100644
--- a/names/server.js
+++ b/names/server.js
@@ -40,7 +40,7 @@ import { accountOf, accountBlockers, forgetAccount } from './forget.js';
const CFG = JSON.parse(readFileSync(process.env.NAMES_CONFIG
|| join(import.meta.dir, 'config.json'), 'utf8'));
-// { port, domains: { '<domain>': { zoneId } }, domain (default), cfEmail, cfKey,
+// { port, domains: { '<domain>': { zoneId, welcome? } }, domain (default), cfEmail, cfKey,
// dbFile (SQLite state), stateFile (the old JSON state, imported once),
// ln: { kind:'socket', path } — the ASP's CLN, for per-name bolt12 offers,
// forwarder: { mnemonic, ark, esplora, network } — a small float ark wallet
@@ -2199,7 +2199,9 @@ Bun.serve({
};
persist();
log(`${existing ? 'updated' : 'registered'} ${key} for ${auth.pubkey.slice(0, 12)}`);
- if (!existing) sendWelcome(state.names[key].pubkey, [state.names[key].manager]).catch(() => {});
+ // a domain can opt out of the coinos welcome DM (paff.club: a PAFF node
+ // claims its name itself, nobody to greet)
+ if (!existing && DOMAINS[domain].welcome !== false) sendWelcome(state.names[key].pubkey, [state.names[key].manager]).catch(() => {});
return json({ ok: true, name, address: key, record: recordName(name, domain) });
}