Skip to content

Conversation

@samholmes
Copy link
Contributor

@samholmes samholmes commented Dec 14, 2025

…ilable

Previously, broadcastTx would fail immediately with 'Missing WebSocket connections' error when serverStatesCache was empty, never reaching the HTTP/REST fallback code. Now the HTTP fallback via NowNodes is always attempted when WebSocket broadcast isn't possible.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Note

Ensures broadcastTx falls back to HTTP (NOWNodes) when no Blockbook WebSocket is connected, and updates the changelog.

  • Engine (UTXO):
    • Update broadcastTx in src/common/utxobased/engine/ServerStates.ts:
      • Remove early rejection on missing WebSocket instances.
      • If no connected Blockbook sockets, attempt HTTP broadcast via NOWNodes (/api/v2/sendtx/) with nowNodesApiKey.
      • Add error handling for missing key or no available HTTP servers; improve logging.
  • Docs:
    • Update CHANGELOG.md Unreleased with the HTTP fallback fix.

Written by Cursor Bugbot for commit d24a1b4. This will update automatically on new commits. Configure here.


…ilable

Previously, broadcastTx would fail immediately with 'Missing WebSocket
connections' error when serverStatesCache was empty, never reaching the
HTTP/REST fallback code. Now the HTTP fallback via NowNodes is always
attempted when WebSocket broadcast isn't possible.
@samholmes samholmes merged commit 75621b1 into master Dec 19, 2025
3 checks passed
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.

3 participants