<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinos-server.git/scripts/dedup-invoices.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-06-18T14:41:21Z</updated>
<entry>
<title>scripts: add dedup-invoices cleanup for already-duplicated :invoices</title>
<updated>2026-06-18T14:41:21Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-06-18T14:41:21Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=45a988b3554f44abd03a2d89f1b9087c993186c1'/>
<id>urn:sha1:45a988b3554f44abd03a2d89f1b9087c993186c1</id>
<content type='text'>
The source fix (LPOS guard in generate, 2d2f9856) stops NEW duplicate
entries but doesn't remove the ones already accumulated. This one-time
script scrubs them: scans every &lt;id&gt;:invoices list and removes duplicate
ids, keeping each id's original creation-order position. Dry-run by
default; pass --apply to write. Idempotent.

Scope on a recent prod snapshot: 2,785 of 8,735 lists had dupes
(16,363 duplicate entries).

Co-Authored-By: Claude Opus 4.8 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
