Skip to content

esplora: full JSON for mempool-only txs - #264

Merged
reardencode merged 2 commits into
masterfrom
esplora/mempool-tx-json
Aug 26, 2026
Merged

esplora: full JSON for mempool-only txs#264
reardencode merged 2 commits into
masterfrom
esplora/mempool-tx-json

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Mempool-only Esplora txs (not in Class A) are full JSON from mp.get_tx: vin/vout/size/weight/fee, status.confirmed false. GET /tx/:txid (and /hex//raw) no longer 404 those txs. Shared helper with WS address-transactions.
  • Pin mempool_only_tx_json_has_vin_vout_size_weight.
  • Closes algo-review X-M1. Retires X-M3 as won't-fix: HTTP is not a session; tiny LRU / per-IP / large cache are the wrong product. One process SH slot stays for sequential REST; Electrum keeps per-connection sticky joins.

Test plan

  • Red then green: cargo test -p rbitcoin-esplora mempool_only_tx_json_has_vin_vout_size_weight
  • block_raw_summary_status_and_mempool_routes / ws_track_address_mempool_and_confirm
  • Required GitHub Actions green

Made with Cursor

rearden-grok Bot and others added 2 commits August 25, 2026 20:09
Class A miss used a txid+fee stub on /txs and 404 on GET /tx. Build the
Esplora tx object from mp.get_tx (vin/vout/size/weight/fee) so BDK-class
clients can parse unconfirmed history.

Co-authored-by: Cursor <cursoragent@cursor.com>
Mempool-only Esplora tx JSON is from the wire. HTTP SH join stays one
process slot: tiny LRU still evicts, per-IP and large caches are the
wrong product; Electrum per-connection is the sticky model.

Co-authored-by: Cursor <cursoragent@cursor.com>
@reardencode
reardencode merged commit 5374b78 into master Aug 26, 2026
13 checks passed
@rearden-grok
rearden-grok Bot deleted the esplora/mempool-tx-json branch August 26, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant