romanz/electrs

Running bitcoin core with tor proxy

Open

#901 geöffnet am 7. Juli 2023

Auf GitHub ansehen
 (4 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)Rust (551 Forks)github user discovery
good first issuehelp wantedp2pquestion

Repository-Metriken

Stars
 (1.366 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

I'm running bitcoin core with the following configuration:

prune=0
txindex=0
onion=127.0.0.1:9050
onlynet=onion
proxy=127.0.0.1:9050
proxyrandomize=1
server=1

When I run electrs to perform the initial sync it closes with the following error:

Error: electrs failed

Caused by:
    0: bitcoin p2p failed to connect: 127.0.0.1:8333
    1: Connection refused (os error 111)

If I comment out the proxy related lines in the bitcoin core configuration file then electrs starts the initial sync as expected, but I would like to run bitcoin core with the tor proxy.

Can someone help me with this issue?

Contributor Guide