aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-03 13:04:36 -0700
committerAdam Soltys <[email protected]>2026-08-03 13:20:36 -0700
commitfb63b96ec90e32bc8adc5b77b2735097dde16bbd (patch)
treebc4dc184a063559fc4b8e350d61805cd73955266 /lib
parenta9268a81c9538ddc9b2f122fb4a75f47ec129353 (diff)
downloadcoinos-server-fb63b96ec90e32bc8adc5b77b2735097dde16bbd.tar.gz
coinos-server-fb63b96ec90e32bc8adc5b77b2735097dde16bbd.zip
Let a migrated account hand its address to coinos v3
A `migrated` flag on the user, settable through /user and visible on the public user endpoint. It changes exactly one thing: lnurlp for that username defers to the names registrar, so payments to [email protected] arrive in the person's v3 wallet. The account itself is untouched — same username, same history, still usable here — which is why this is a flag and not a rename or a shutdown. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.ts2
-rw-r--r--lib/whitelist.ts1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils.ts b/lib/utils.ts
index add09782..f336c144 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -175,6 +175,8 @@ export const fields = [
"hidepay",
"lud16",
"memoPrompt",
+ // a v3-migrated account: the names registrar owns this name for receiving
+ "migrated",
"npub",
"picture",
"prompt",
diff --git a/lib/whitelist.ts b/lib/whitelist.ts
index 13e4b0dc..c1ac5340 100644
--- a/lib/whitelist.ts
+++ b/lib/whitelist.ts
@@ -25,6 +25,7 @@ export default [
"locked",
"locktime",
"memoPrompt",
+ "migrated",
"nip5",
"notify",
"npub",