Feature Request: Let electrs and esplora be self-hosted by users (not currently possible)

Open
#489 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale

Research direction

The issue concerns electrs as a dependency of Esplora and reports resource exhaustion while syncing the Liquid network. Start by determining whether memory limiting belongs in electrs or Esplora, reproduce the sync with the reported 16 GB constraint, and define a resource cap that completes without crashing.

Written by the indexing model from the issue text.

Description

I did not see a way to open an issue on the Blockstream electrs fork. So I am opening it here as it is a dependency of Esplora.

My computer has 16 GB of RAM. Even if I'm only using a few GB of RAM before trying to sync electrs for the liquid network, it quickly consumes all of my RAM casuing both liquid and electrs to crash. Right now it is impossible to actually get electrs to work due to the memory leak or resource depletion. I happen to be on a computer with intel ME stripped out (impossible to do after sandy and ivy bridge) so I am able to handle 16 GB of RAM. However, most freedom computers which do not include backdoors in the CPU (like intel or AMD) actually are limited to 4GB of RAM. Does electrs (and blockstream green of which electrs is a dependency of to use it privately) actually require use of backdoored computers to use? I'd think that even 16 GB of RAM would have been enough. But we should also keep in mind the computers that are capped at 4 GB of RAM.

Is it possible to limit the amount of RAM used by electrs to prevent it from consuming all system resources and crashing? 16 GB of RAM is ALOT and should in itself be enough.

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.