aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-27 17:11:15 -0700
committerAdam Soltys <[email protected]>2026-06-27 17:11:15 -0700
commitb0b9a71ef4912350ecf188bf6a75d21e97adc06b (patch)
tree26408ba59a115b839efb9d9d551abf5a07b84403 /src/api.js
parenta52cf9e500847bc1d545eee9e2816a13cccf20cf (diff)
downloadcoinosv3-b0b9a71ef4912350ecf188bf6a75d21e97adc06b.tar.gz
coinosv3-b0b9a71ef4912350ecf188bf6a75d21e97adc06b.zip
Mempool (unconfirmed) silent-payment discovery
Indexer: scan the mempool (getrawmempool + getrawtransaction; prevouts fetched explicitly since verbosity-2 omits them for mempool txs), track SP-eligible unconfirmed txs, serve /mempool, and push {type:'mempool'} on change. Switched Core RPC to node:http (no keep-alive) + serialized calls — Bun's fetch was dropping sockets under the added mempool load. Wallet: handle the mempool push and /mempool catch-up (_scanSpMempool) — pending SP receipts rebuild on each update (also drops RBF'd/vanished ones); block pushes promote a pending entry to confirmed. So a silent payment shows the instant it's broadcast, like a normal receive, with no mining. Verified on regtest: an unconfirmed SP is detected and served; clean logs. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions