From 8e7e129f02855e996dfcd4efb27b262641426835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Tue, 4 Aug 2026 00:24:54 +0000 Subject: [PATCH] drop a scratch file committed by mistake, and ignore the pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .gitignore | 3 +++ check2.tmp.ts | 20 -------------------- 2 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 check2.tmp.ts diff --git a/.gitignore b/.gitignore index 0994d83a..6b8d93bf 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/check2.tmp.ts b/check2.tmp.ts deleted file mode 100644 index f7c962d5..00000000 --- a/check2.tmp.ts +++ /dev/null @@ -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);