drop a scratch file committed by mistake, and ignore the pattern

git add -A swept up a throwaway verification script. it held no key material —
it read addresses from a file outside the repo — but it had no business being
committed. ignoring *.tmp.ts so the next one cannot repeat it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-04 00:24:54 +00:00
co-authored by Claude Opus 5
parent e526b8599c
commit 8e7e129f02
2 changed files with 3 additions and 20 deletions
+3
View File
@@ -45,3 +45,6 @@ playwright/
# generated from index.html by scripts/gen-index.ts
src/apps/officer-web/index.gen.html
# scratch scripts — never commit these
*.tmp.ts
-20
View File
@@ -1,20 +0,0 @@
const lines = (await Bun.file('/tmp/addrs2.tsv').text()).trim().split('\n');
let hits = 0, totalBal = 0;
for (const line of lines) {
const [type, path, addr] = line.split('\t');
const proc = Bun.spawn(['curl', '-4', '-s', '--max-time', '12', `https://mempool.space/api/address/${addr}`], { stdout: 'pipe', stderr: 'ignore' });
const body = await new Response(proc.stdout).text();
await proc.exited;
try {
const j = JSON.parse(body); const c = j.chain_stats, m = j.mempool_stats;
const tx = (c?.tx_count ?? 0) + (m?.tx_count ?? 0);
if (tx > 0) {
const bal = (c.funded_txo_sum - c.spent_txo_sum) + (m.funded_txo_sum - m.spent_txo_sum);
totalBal += bal; hits++;
console.log(`${type} ${path} ${addr} txs=${tx} balance=${bal}`);
}
} catch {}
await Bun.sleep(70);
}
console.log(`\nindices20-59: addressesWithHistory=${hits} unspentTotal=${totalBal} sats`);
process.exit(0);