Skip to content

fix: send server.version handshake before any ElectrumX request#1347

Merged
julian-CStack merged 1 commit into
cypherstack:stagingfrom
navidR:dev/navidr/fix-electrumx-protocol
May 21, 2026
Merged

fix: send server.version handshake before any ElectrumX request#1347
julian-CStack merged 1 commit into
cypherstack:stagingfrom
navidR:dev/navidr/fix-electrumx-protocol

Conversation

@navidR
Copy link
Copy Markdown
Contributor

@navidR navidR commented May 21, 2026

The updated electrumx-firo server enforces strict protocol negotiation: server.version must be the first message after connecting, or the server disconnects with BAD_REQUEST: use server.version to identify client (see electrumx-firo/src/electrumx/server/session.py:1056-1060). Without this handshake, all ElectrumX RPC calls fail immediately after connection. This patch adds a server.version request in two places — ElectrumXClient after creating a new client (before adding it to ClientManager) and in checkElectrumServer before the health-check ping — so both regular operation and connection probes satisfy the protocol requirement.

@julian-CStack julian-CStack merged commit bd597d2 into cypherstack:staging May 21, 2026
1 check failed
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