[electrs] `server.features` only available with the `electrum-discovery` feature

Open
#470 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
api, backend

Research direction

Start at the server.features protocol entry point and trace how its availability is gated by the electrum-discovery feature. Confirm the behavior with the existing protocol test or client-facing call path, then ensure server.features reports the chain hash and protocol version without requiring public network announcement.

Written by the indexing model from the issue text.

Description

The server.features call is one of the most basic Electrum calls that is for example a prerequisite to figure out which chain hash and protocol version a server speaks. However, electrs opts to only make this API call available when the electrum-discovery feature is set.

However, retrieving server features should be available even if the node won't be publically announced via the P2P network, as otherwise client can't rely on protocol version information or chain hash information being available.

Dominant language
JavaScript
Stars
1.3k
Forks
527
Avg merge
2d 5h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Blockstream/esplora

All issues in Blockstream/esplora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.