Skip to content

Share the Esplora HTTP fallback between tx status and refund hex - #141

Open
TomasCast wants to merge 1 commit into
developfrom
feature/shared-esplora-fallback
Open

TomasCast wants to merge 1 commit into
developfrom
feature/shared-esplora-fallback

Conversation

@TomasCast

Copy link
Copy Markdown
Collaborator

Summary

  • lw_tx_status and get_transaction_hex now share esplora_http_get, so a bad response from one Liquid backend falls through to the next in both paths.
  • A non-UTF-8 200 used to abort tx status with UnicodeDecodeError before the next backend was tried. That case now falls through, matching the refund hex fetch.
  • Electrum overrides are unchanged: a non-HTTP electrum_url still uses get_tx.

Test plan

  • TestTxStatusBackendFallback and TestChainAccess in a Linux container (33 passed)
  • Live aqua liquid tx-status for tx 8392a675…15724 (confirmed, 2115 confs)
  • Live get_transaction_hex for the same tx (45426 hex chars, starts 02000000)

…hes.

A non-UTF-8 200 from the first backend aborted lw_tx_status instead of trying the next one. get_transaction_hex already fell through; both callers now use esplora_http_get.
@TomasCast TomasCast self-assigned this Oct 7, 2026
@TomasCast
TomasCast requested a review from andycreed0x October 7, 2026 12:08

@andycreed0x andycreed0x left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This branch has not been deployed

No deployments
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.

2 participants