aboutsummaryrefslogtreecommitdiffstats
path: root/names/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'names/server.js')
-rw-r--r--names/server.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/names/server.js b/names/server.js
index 907efb1..83996d7 100644
--- a/names/server.js
+++ b/names/server.js
@@ -480,6 +480,24 @@ async function forwardOnce(name, sat, hash, pubkey) {
log(`delivered ${sat} sat to ${name}: the earlier float send completed`);
return;
}
+ // The coins went (the server cosigned and registered the arkoor to the
+ // recipient's key) but the mailbox refuses the notice for good: an
+ // address whose blinded mailbox id isn't a point ([email protected],
+ // 2026-11-14: "invalid a blinded VTXO mailbox identifier", logged every
+ // minute). Nothing more can be done from here — paying again would pay
+ // twice — so the send is finished, the payment counts as delivered, and
+ // the float's upkeep (held while any action is open) can run again.
+ const refused = acts.find((a) => a.step === 'registered' && /PostArkoorMessage: status 3\b/.test(a.lastError || ''));
+ if (refused) {
+ refused.step = 'done';
+ refused.undelivered = refused.lastError;
+ fwd._save();
+ delete state.inflight[hash];
+ recordLnReceipt(name, sat, hash);
+ persist();
+ log(`delivered ${sat} sat to ${name} without a mailbox notice: the recipient's address can't receive one (${refused.lastError})`);
+ return;
+ }
if (acts.some((a) => a.step !== 'failed')) throw new Error('float send for this payment still unresolved — not paying again');
log(`forward: the earlier float send for ${name} ${acts.length ? 'failed' : 'never started'} — trying again`);
delete state.inflight[hash];