diff options
| author | Adam Soltys <[email protected]> | 2026-11-25 09:25:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-11-25 09:25:18 -0700 |
| commit | 6d5f69a23b8e52513825465a06911d67702edec3 (patch) | |
| tree | eab409c6d3394c37f9b8b790e7f3e7f8b9ac4301 /scripts/pay-hard.ts | |
| parent | 00799bb5ed16d3f2514ba68938e479110a1412a9 (diff) | |
| download | coinos-server-6d5f69a23b8e52513825465a06911d67702edec3.tar.gz coinos-server-6d5f69a23b8e52513825465a06911d67702edec3.zip | |
payments: hold Lightning deposits back from on-chain withdrawal
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMan6SEnsbshZrUDtTsxAX
Diffstat (limited to 'scripts/pay-hard.ts')
0 files changed, 0 insertions, 0 deletions
