diff options
| author | Adam Soltys <[email protected]> | 2026-11-14 01:14:15 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-11-14 01:14:15 -0700 |
| commit | 0d812b1e9f4dfd3dd4f29f880a420c843b33da04 (patch) | |
| tree | e97ac7f5ba07ff81e2b0824a8594f359c4423136 /names/server.js | |
| parent | 71658292e403784b42d0cc82b801cbb5ac611331 (diff) | |
| download | coinosv3-server-0d812b1e9f4dfd3dd4f29f880a420c843b33da04.tar.gz coinosv3-server-0d812b1e9f4dfd3dd4f29f880a420c843b33da04.zip | |
names: a float send the mailbox refuses for good counts as delivered, once. "can we do something to stop it logging at least?" (Adam, 2026-11-14), of "forward retry failed for [email protected] (21 sat, try N): float send for this payment still unresolved — not paying again" every minute. [email protected]'s ark address carries a blinded mailbox id that isn't a point (64bbbb…), so after the server cosigned and registered the arkoor to the recipient's key, PostArkoorMessage answered status 3 "invalid a blinded VTXO mailbox identifier" and the action sat at 'registered' for good: the forward refused to pay twice, and floatUpkeep/consolidateFloat (held while any action is open) stopped. Now such an action is closed as done (undelivered: the reason), the payment is recorded delivered, and one line says it went without a notice
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMan6UKGJyuGyZFxddYRxS
Diffstat (limited to 'names/server.js')
| -rw-r--r-- | names/server.js | 18 |
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]; |
