<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinosv3.git/tools/ark-refund-mailbox.test.js, branch master</title>
<subtitle>coinos v3 — bitcoin, Ark, Lightning and nostr wallet (web + Android)</subtitle>
<id>https://git.coinos.io/coinosv3.git/atom?h=master</id>
<link rel='self' href='https://git.coinos.io/coinosv3.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinosv3.git/'/>
<updated>2026-11-22T16:31:49Z</updated>
<entry>
<title>A payment's refund the wallet lost can come back through its mailbox. Handoff from the coinos-server agent on desk, 2026-11-22 ("V3 wallet lost a Lightning refund", user json534543): on 2026-11-20 a 14,770-sat Lightning payment failed six times in two minutes; after the last failure the server cosigned the revocation at 12:41:05 UTC and holds the refund as two spendable coins (14,786 and 2 sats) paid to the payment's refund key, but the page was reloaded in that second and the wallet never wrote them down, so it shows a balance of 0. The wallet builds the refund coin itself and nothing gave it back afterwards: the mailbox was the only way in, and it took coins paid to key 0 only. A coin from the mailbox is now accepted when it is paid to any key this wallet has handed out, and is kept under that key. When that key is a payment's refund key the payment is closed as failed with "payment failed, funds returned" and its HTLC coins marked spent, instead of a "Received" row. A coin to a key that is not ours is refused as before. A build from before this change refuses such a coin and moves the mailbox cursor past it, so once a session, while such a refusal is on record, the mailbox is read again from the start and what the server still holds for one of our keys is adopted. New ark-refund-mailbox test (3 cases); ark-htlc-orphan, ark-htlc-held, ark-reconcile-race and features-smoke pass. Both stored coins pass the wallet's own validation against the chain.</title>
<updated>2026-11-22T16:31:49Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-22T16:31:49Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinosv3.git/commit/?id=f39513ec0a1bc178d8569116286f2b5b90ef3822'/>
<id>urn:sha1:f39513ec0a1bc178d8569116286f2b5b90ef3822</id>
<content type='text'>
Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6Upic5L6MMJzkTn8zg
</content>
</entry>
</feed>
