<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinos-server.git/lib/hold.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-11-25T16:25:18Z</updated>
<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>
</feed>
