<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinos-server.git/lib/payments.ts, branch HEAD</title>
<subtitle>coinos server — legacy coinos.io backend (Lightning, on-chain, Liquid)</subtitle>
<id>https://git.coinos.io/coinos-server.git/atom?h=HEAD</id>
<link rel='self' href='https://git.coinos.io/coinos-server.git/atom?h=HEAD'/>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/'/>
<updated>2026-12-04T21:49:12Z</updated>
<entry>
<title>Credit deposits to a retired hot wallet's addresses (legacyWallets).</title>
<updated>2026-12-04T21:49:12Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-12-04T21:49:12Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=dfe22eee4e698731c3e31420250bb158f2d4b2d5'/>
<id>urn:sha1:dfe22eee4e698731c3e31420250bb158f2d4b2d5</id>
<content type='text'>
2026-12-04: the bitcoin hot wallet's keys were stolen, so coinos moved to a new hot wallet. Users still pay the deposit addresses the old one handed out. With the old wallet loaded and named in config.bitcoin.legacyWallets, /confirm treats it like the hot wallet (credited by invoice address, not as an account wallet) and catchUp lists its receives too, posting its own wallet name. The coins themselves are swept to the new wallet by a host-side job.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar
</content>
</entry>
<entry>
<title>payments: hold Lightning deposits back from on-chain withdrawal</title>
<updated>2026-11-25T16:25:18Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-25T16:25:18Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=6d5f69a23b8e52513825465a06911d67702edec3'/>
<id>urn:sha1:6d5f69a23b8e52513825465a06911d67702edec3</id>
<content type='text'>
While hold:enabled is set, Lightning deposits above a daily free allowance
are held: they can still be spent over Lightning or sent internally, but not
withdrawn on-chain or over Lightning into our own on-chain liquidity. The
check and release run inside the atomic debit script, internal transfers
carry the hold to the receiver, and old holds expire via scripts/holds.ts.
The listener notes which peer each deposit arrived from for review.

sendOnchain now refuses frozen accounts before building the transaction or
locking its inputs, so a frozen account retrying withdrawals cannot hold
hot-wallet UTXOs and make other sends fail with locked outputs.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6SEnsbshZrUDtTsxAX
</content>
</entry>
<entry>
<title>sendOnchain: grow the blocked-address list from mule accounts only</title>
<updated>2026-11-13T23:11:02Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-13T23:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=00799bb5ed16d3f2514ba68938e479110a1412a9'/>
<id>urn:sha1:00799bb5ed16d3f2514ba68938e479110a1412a9</id>
<content type='text'>
An account caught sending to a blocked address is frozen and added to a
`mules` set, and a mule's withdrawal destinations are blocked too, so a
drain operator's fresh accounts are stopped on their first sweep. A plain
blacklist freeze doesn't feed the list: frozen accounts are often takeover
victims, and blocking their owner's own address locks the owner out after
the account is recovered. Wallet-owned outputs (change) are never matched.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>lnurl: fetch user-supplied URLs through the SSRF guard, relay only protocol fields</title>
<updated>2026-11-13T23:11:02Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-13T23:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=b8b409910f71976959135b336b409c4923cf4c87'/>
<id>urn:sha1:b8b409910f71976959135b336b409c4923cf4c87</id>
<content type='text'>
Lightning address sends (pay() and POST /send/&lt;lnaddr&gt;) now validate the
name and domain and fetch through safeGot instead of plain got. Zap receipt
relays from the zap request must resolve to public hosts. The LNURL decode
and proxy routes return only LNURL protocol fields instead of whatever JSON
the upstream sent, and the proxy logs failures rate-limited with a generic
error to the client. Also blocks the 172.42.0.0/16 docker range.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>payments: cap the routing fee a lightning send may reserve</title>
<updated>2026-11-02T19:55:05Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-02T19:55:05Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=eee65266b7843764b7544a259cba9ec94a67a392'/>
<id>urn:sha1:eee65266b7843764b7544a259cba9ec94a67a392</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6VN9xvnX1cgvV6hrUV
</content>
</entry>
<entry>
<title>payments: credit each on-chain output once and require uuid invoice ids</title>
<updated>2026-11-02T19:54:10Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-02T19:54:10Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=8fbc6ea19c9f4959799f3d72b32e2b8661596ea8'/>
<id>urn:sha1:8fbc6ea19c9f4959799f3d72b32e2b8661596ea8</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6VN9xvnX1cgvV6hrUV
</content>
</entry>
<entry>
<title>payments: refuse a lightning send over the balance before quoting its route</title>
<updated>2026-10-29T23:40:36Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-10-21T13:15:30Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=5cafd3dad520ea620deee8519c9d26eeeaa258f6'/>
<id>urn:sha1:5cafd3dad520ea620deee8519c9d26eeeaa258f6</id>
<content type='text'>
A retrying client against an empty account cost an askrene query per
attempt. debit() stays the authoritative check. Route-quote failures are
also rate-limited in the log per user.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01NfM8zA4DdKvW1316z4zCaD
</content>
</entry>
<entry>
<title>Evicted accounts can't receive or log in; limit errors say what's happening</title>
<updated>2026-10-04T20:38:24Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-10-04T20:38:24Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=41018c30a2e03f5ab05be64d419542be0cff7943'/>
<id>urn:sha1:41018c30a2e03f5ab05be64d419542be0cff7943</id>
<content type='text'>
An evicted account no longer gets lightning-address invoices (stops a
scam page's address from minting new ones) or a login token. A send
over the server limit now says withdrawals are temporarily limited
instead of a generic "Problem sending payment" that read as a frozen
account. (Already live since the 2026-10-01 restart.)

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_011bvzKaZosXGHkigcGcSzAR
</content>
</entry>
<entry>
<title>v3 bridge: a migrated name's legacy receives are paid on to its v3 wallet</title>
<updated>2026-10-04T20:05:53Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-10-04T20:05:53Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=1ff2623dbb43148267eac5cbe68c76d2c0639805'/>
<id>urn:sha1:1ff2623dbb43148267eac5cbe68c76d2c0639805</id>
<content type='text'>
A user who moved their name to coinos v3 keeps their legacy account, and
old BOLT12 offers, bolt11 invoices and bitcoin/liquid deposit addresses
keep paying into it. Each confirmed receive of those kinds is now
forwarded as it lands to the name's v3 lightning address (registrar
invoice on the ASP node; the v3 forwarder delivers to the Ark mailbox
even with the wallet closed). Only new receives move; existing balances
stay. Routing cost only: the platform fee is waived (debit exempt), and
the direct channels to the ASP node quote 0. Proof required: the
registrar holds the name for the legacy account's own key, or for the
wallet its session named in a migration grant (/name granted flag).
Autowithdraw stands down for forwarded receives; failures retry with
backoff (v3fwd:retry, one process at a time) and otherwise stay put.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_011bvzKaZosXGHkigcGcSzAR
</content>
</entry>
<entry>
<title>payments: refuse on-chain sends to blocked addresses before debiting</title>
<updated>2026-09-29T15:37:47Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-09-29T15:37:39Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=41a5819f5d7c662a5a2884952e49a14464e83c41'/>
<id>urn:sha1:41a5819f5d7c662a5a2884952e49a14464e83c41</id>
<content type='text'>
debit() checks blocked_addresses against the payment hash, which for an
on-chain send is the txid, so a blocked destination address was never
matched. Check each output address of the built transaction in sendOnchain
and fail before any debit.

Co-Authored-By: Claude Fable 5.1 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
