Skip to content

fix: continue address tx pagination across mempool boundary#143

Open
junderw wants to merge 1 commit intomempoolfrom
junderw/fix-txs-endpoint
Open

fix: continue address tx pagination across mempool boundary#143
junderw wants to merge 1 commit intomempoolfrom
junderw/fix-txs-endpoint

Conversation

@junderw
Copy link
Copy Markdown
Member

@junderw junderw commented Mar 26, 2026

Closes #142

The address tx history endpoints could stop pagination at the mempool/chain boundary when after_txid pointed to the last mempool transaction for an address or address group. The confirmed-history query was reusing after_txid whenever the mempool query returned no rows, even if that cursor only existed in mempool. This change makes the confirmed-history query reuse after_txid only when the cursor was actually found in chain history; mempool cursors now correctly fall through to the newest confirmed transactions.

@junderw junderw force-pushed the junderw/fix-txs-endpoint branch 2 times, most recently from 3667723 to 26213ac Compare March 26, 2026 15:39
The address tx history endpoints could stop pagination at the mempool/chain boundary when after_txid pointed to the last mempool transaction for an address or address group. The confirmed-history query was reusing after_txid whenever the mempool query returned no rows, even if that cursor only existed in mempool. This change makes the confirmed-history query reuse after_txid only when the cursor was actually found in chain history; mempool cursors now correctly fall through to the newest confirmed transactions.

Co-authored-by: Saravanan Mani <228955468+saravanan7mani7@users.noreply.github.com>
@junderw junderw force-pushed the junderw/fix-txs-endpoint branch from 26213ac to 98ae002 Compare March 26, 2026 15:47
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.

electrs: after_txid pagination can stop at mempool/chain boundary for address tx history

1 participant