Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- fixed: Use HTTP fallback for transaction broadcast when WebSocket connections are unavailable

## 3.8.9 (2025-12-04)

- fixed: Change PIVX blockbook server list.
Expand Down
11 changes: 1 addition & 10 deletions src/common/utxobased/engine/ServerStates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,6 @@ export function makeServerStates(config: ServerStateConfig): ServerStates {
uri => serverStatesCache[uri].blockbook != null
)

// If there are no blockbook instances, reject the promise
if (wsUris.length < 1) {
reject(new Error('Unexpected error. Missing WebSocket connections.'))
// Exit early if there are blockbook instances
return
}

// Determine if there are any connected blockbook instances
const isAnyBlockbookConnected = wsUris.some(
uri => serverStatesCache[uri].blockbook.isConnected
Expand Down Expand Up @@ -430,9 +423,7 @@ export function makeServerStates(config: ServerStateConfig): ServerStates {
if (nowNodeUris.length < 1) {
// If no HTTP servers are available, and we had no connected blockbook
// instances, reject the promise with a message indicating no
// available connections. It's clear we have some connection instances
// if we gotten to this point, but we just don't have any of those
// instances connected at this time.
// available connections.
reject(
new Error('No available connections. Check your internet signal.')
)
Expand Down
Loading