aboutsummaryrefslogtreecommitdiffstats
path: root/names/server.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-12-02 10:39:57 -0700
committerAdam Soltys <[email protected]>2026-12-02 10:39:57 -0700
commitc851718782ec8c26d8fd32372ec50a9f7e9efd23 (patch)
tree94a027344d44591b5cf2623cff2690dd61dba925 /names/server.js
parent957599974b453b9b13653b821658fd0a76d01809 (diff)
downloadcoinosv3-server-c851718782ec8c26d8fd32372ec50a9f7e9efd23.tar.gz
coinosv3-server-c851718782ec8c26d8fd32372ec50a9f7e9efd23.zip
Revert "names: /migrate-grant only hands over a name whose coinos.io account has migrated."
The legacy `migrated` flag is set on nearly every coinos.io account (295 of a 299-account sample), so the check stopped almost nothing and only made grants depend on a second call to coinos.io. The hole itself is closed in coinos-ui (374afce1: the name comes from the session, not the form). A real second check would have the grant carry the old account's session for the registrar to verify against coinos.io/api/me. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar
Diffstat (limited to 'names/server.js')
-rw-r--r--names/server.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/names/server.js b/names/server.js
index a8f7464..0a8a9f1 100644
--- a/names/server.js
+++ b/names/server.js
@@ -38,7 +38,6 @@ import { registrationIdentity } from './ownership.js';
import { openStore } from './store.js';
import { withdrawService } from './withdraw.js';
import { accountOf, accountBlockers, forgetAccount } from './forget.js';
-import { migrateGrantRefusal } from './migrate-check.js';
const CFG = JSON.parse(readFileSync(process.env.NAMES_CONFIG
|| join(import.meta.dir, 'config.json'), 'utf8'));
@@ -2105,8 +2104,6 @@ Bun.serve({
try { b = await req.json(); } catch { return json({ error: 'bad body' }, 400); }
const name = String(b.name || '').toLowerCase();
if (!NAME_RE.test(name)) return json({ error: 'bad name' }, 400);
- const refused = await migrateGrantRefusal(name);
- if (refused) return json({ error: refused[1] }, refused[0]);
let pubkey = /^[0-9a-f]{64}$/.test(String(b.pubkey || '')) ? b.pubkey : null;
let manager = null;
if (!pubkey && b.to) {