<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinos-server.git/routes/payments.ts, branch regtest-fulcrum</title>
<subtitle>coinos server — legacy coinos.io backend (Lightning, on-chain, Liquid)</subtitle>
<id>https://git.coinos.io/coinos-server.git/atom?h=regtest-fulcrum</id>
<link rel='self' href='https://git.coinos.io/coinos-server.git/atom?h=regtest-fulcrum'/>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/'/>
<updated>2026-05-18T06:22:51Z</updated>
<entry>
<title>mirror payment records to arc + atomic /confirm lock to prevent double-credits</title>
<updated>2026-05-18T06:22:51Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-05-18T06:22:51Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=0e368dab0943067c060ad45578a4c4cbdc3434a6'/>
<id>urn:sha1:0e368dab0943067c060ad45578a4c4cbdc3434a6</id>
<content type='text'>
Follows up the Apr 29 double-credit incident. Two parallel callers of
/confirm (walletnotify, catchUp, bulk sweeps) could each read
p.confirmed=false and each run the multi() that increments balance —
because main-db pointers were sometimes missing while arc still had them,
gf()'s arc fallback returned stale state. Three pieces here:

- routes/payments.ts: SET NX EX 60 lock around the /confirm credit block
  keyed by `confirmlock:${txid}:${vout}`. Concurrent callers short-circuit
  cleanly. The lock is released on success and on every early-return.

- lib/payments.ts credit() + routes/payments.ts /confirm: mirror the
  payment/invoice records and the `payment:&lt;txid&gt;:&lt;vout&gt;` / `payment:&lt;hash&gt;`
  pointer keys into arc as soon as they're written. gf() will then find
  the prior credit via arc fallback even if the main-db copy is wiped by
  a future data-loss event.

- routes/payments.ts hide `revertedDuplicate` payments from the user's
  payment list — matches the same filter added to lib/nwc.ts list_transactions
  so reverted records never surface in either rendering path.

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>remove /gateway endpoint</title>
<updated>2026-05-18T06:21:39Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-05-18T06:21:39Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=3c4d0b6914bbc7ecf49312a264d55af3c2e2d7a6'/>
<id>urn:sha1:3c4d0b6914bbc7ecf49312a264d55af3c2e2d7a6</id>
<content type='text'>
Unauthenticated arbitrary db.set abuse vector. Exploited to inflate user
balances and override safety controls (bitcoin:limit, limit, hardfreeze,
freeze) in real time, leading to a hot-wallet drain. Route and handler
both fully removed.

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>don't remove missing payments</title>
<updated>2026-03-25T06:51:08Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-03-25T06:51:08Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=13372a9ee10a00ce3e17676198e97d2991b4855d'/>
<id>urn:sha1:13372a9ee10a00ce3e17676198e97d2991b4855d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove logs</title>
<updated>2026-03-17T06:53:13Z</updated>
<author>
<name>Adam Soltys</name>
<email>asoltys@gmail.com</email>
</author>
<published>2026-03-17T06:53:13Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=92e7d1564deb25f9e58e3b268c077018c4b2c4c4'/>
<id>urn:sha1:92e7d1564deb25f9e58e3b268c077018c4b2c4c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix addmanagers</title>
<updated>2026-02-10T19:37:30Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-02-10T19:37:30Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=e3bd815df6130c77b7282695ac450efdeadf9956'/>
<id>urn:sha1:e3bd815df6130c77b7282695ac450efdeadf9956</id>
<content type='text'>
</content>
</entry>
<entry>
<title>filter null managers</title>
<updated>2026-02-10T19:31:56Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-02-10T19:31:04Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=a7c86ec974d37d381df05b75273db129a9eac4dd'/>
<id>urn:sha1:a7c86ec974d37d381df05b75273db129a9eac4dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>consult archive for older payments</title>
<updated>2026-01-30T20:31:59Z</updated>
<author>
<name>Adam Soltys</name>
<email>asoltys@gmail.com</email>
</author>
<published>2026-01-30T20:31:59Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=edd76a99a90d56ab641c48b95dd5891558baa133'/>
<id>urn:sha1:edd76a99a90d56ab641c48b95dd5891558baa133</id>
<content type='text'>
</content>
</entry>
<entry>
<title>read payments from archive</title>
<updated>2026-01-23T02:48:07Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-01-23T02:48:07Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=d147e04d1b52f1359507a6f9d88e0227cf6bb250'/>
<id>urn:sha1:d147e04d1b52f1359507a6f9d88e0227cf6bb250</id>
<content type='text'>
</content>
</entry>
<entry>
<title>check username</title>
<updated>2026-01-19T00:27:30Z</updated>
<author>
<name>Adam Soltys</name>
<email>asoltys@gmail.com</email>
</author>
<published>2026-01-19T00:27:30Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=08d292474e8310a73fb28d35c500bd8063b73ca3'/>
<id>urn:sha1:08d292474e8310a73fb28d35c500bd8063b73ca3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>get lnaddress fee from body</title>
<updated>2025-11-17T22:44:30Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2025-11-17T22:44:26Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=c261297e5de47b1057b7250f42eeb73f62ca67bf'/>
<id>urn:sha1:c261297e5de47b1057b7250f42eeb73f62ca67bf</id>
<content type='text'>
</content>
</entry>
</feed>
