aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/names.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-22 10:14:59 -0700
committerAdam Soltys <[email protected]>2026-09-22 10:14:59 -0700
commite59ed2d1106396750d1fdb15fe98a4b7ab2c80fc (patch)
tree62def5369b7b0bc75075dcbd9d3ba82ff766e985 /src/features/names.js
parentb73d5b5db16bbd34385382574d2d454de0b5d505 (diff)
downloadcoinosv3-e59ed2d1106396750d1fdb15fe98a4b7ab2c80fc.tar.gz
coinosv3-e59ed2d1106396750d1fdb15fe98a4b7ab2c80fc.zip
Ark server is a setting again; an address on another server falls back to Lightning.
Settings → Advanced → Ark server: coinos, Second (ark.second.tech) or a custom server, per network — the stored choice is honoured on mainnet again. Ark state is kept per server, so switching hides but never loses coins; the card says what the current server holds and asks before letting go. After a switch the reusable address, the nostr advert and the payment name's ark= instruction follow the new server. Sends between servers can't be arkoor, so an Ark address that names a different server (its first bytes hash the server key) is treated as no Ark address at all in the pay ladder — a coinos name or npub then goes over Lightning by itself — and a pasted one is refused with the reason. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp
Diffstat (limited to 'src/features/names.js')
-rw-r--r--src/features/names.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/features/names.js b/src/features/names.js
index ed6cd99..f6afc95 100644
--- a/src/features/names.js
+++ b/src/features/names.js
@@ -947,6 +947,8 @@ export function namesFeature(ctx) {
},
settingsCards() { return namesCards(); },
posSettingsCards() { return posSettingsCardsForName(); },
+ // the Ark server changed: the name's ark= instruction must follow
+ namesRefresh() { refresh().catch(() => {}); return true; },
// Settings → Nostr: the CLINK zap code (a nostr offer, so it lives with
// the other nostr settings rather than under the payment address).
nostrSettingsCards() {