<p>Recently I had to reinstall/compile Bitcoin Core in my freshly installed Debian Buster laptop.
I followed instructions here for method 2 at the bottom of the site:
<a href="https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service</a></p>
<p>But shortly after I started my node, I noticed that the command</p>
<pre><code>bitcoin-cli getnetworkinfo

</code></pre>
<p>was reporting 2 onion addresses at the bottom of the returned JSON object, at section <em>localaddresses</em>.</p>
<pre><code>    {
      &quot;address&quot;: &quot;rs6srmllckfcveu2.onion&quot;,
      &quot;port&quot;: 8333,
      &quot;score&quot;: 6
    },
    {
      &quot;address&quot;: &quot;53hhdjgv4jailcee.onion&quot;,
      &quot;port&quot;: 8334,
      &quot;score&quot;: 4
    }
  ],
  &quot;warnings&quot;: &quot;&quot;

</code></pre>
<p>These are my settings related to Bitcoin Core and Tor</p>
<p>Bitcoin Core config file</p>
<pre><code>proxy=127.0.0.1:9050
listen=1
bind=127.0.0.1
externalip=53hhdjgv4jailcee.onion
onlynet=onion
port=8334
</code></pre>
<p>and in /etc/tor/torrc</p>
<pre><code>HiddenServiceDir /var/lib/tor/bitcoin-service
HiddenServiceVersion 2
HiddenServicePort 8334 127.0.0.1:8333
</code></pre>
<p>I also added this to
but these lines are for c-lightning node configuration, so I assume they play no role for Bitcoin Core configuration regarding method 2.</p>
<pre><code>SocksPort 9050

CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /run/tor/control.authcookie
</code></pre>
<p>Inside <em>/var/lib/tor/bitcoin-service/hostname</em> I can see only one onion address which is the one in my Bitcoin Core config file.</p>
<p>I already tried to delete my bitcoin <em>onion_private_key</em> file and also deleted my <em>/var/lib/tor/bitcoin-service</em> folder, but still 2 onion addresses are showing up.
So, where is it Bitcoin Core picking up the other onion address?
Can anyone help me?</p>

CC BY-SA 4.0
2020-12-11T13:41:18.617Z
I'll try today after work and will let you know @Prayank
PsySc0rpi0n
CC BY-SA 4.0
2021-01-24T16:10:38.430Z
@Prayank if I remove those lines, the service won't be controlled by Tor any more, if I understand correctly. Which was the point of that config. However, I'm not using that config any more. If I get back to it, I'll come back to this thread. Thank you!
PsySc0rpi0n
<tor><services>
Bitcoin core behind Tor Hidden service problem
PsySc0rpi0n
# Bitcoin core behind Tor Hidden service problem

(Asked by: username_0 on 2020-12-09)

Recently I had to reinstall/compile Bitcoin Core in my freshly installed Debian Buster laptop.
I followed instructions here for method 2 at the bottom of the site:
<https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service>

But shortly after I started my node, I noticed that the command

```
bitcoin-cli getnetworkinfo

```

was reporting 2 onion addresses at the bottom of the returned JSON object, at section *localaddresses*.

```
    {
      "address": "rs6srmllckfcveu2.onion",
      "port": 8333,
      "score": 6
    },
    {
      "address": "53hhdjgv4jailcee.onion",
      "port": 8334,
      "score": 4
    }
  ],
  "warnings": ""

```

These are my settings related to Bitcoin Core and Tor

Bitcoin Core config file

```
proxy=127.0.0.1:9050
listen=1
bind=127.0.0.1
externalip=53hhdjgv4jailcee.onion
onlynet=onion
port=8334

```

and in /etc/tor/torrc

```
HiddenServiceDir /var/lib/tor/bitcoin-service
HiddenServiceVersion 2
HiddenServicePort 8334 127.0.0.1:8333

```

I also added this to
but these lines are for c-lightning node configuration, so I assume they play no role for Bitcoin Core configuration regarding method 2.

```
SocksPort 9050

CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /run/tor/control.authcookie

```

Inside */var/lib/tor/bitcoin-service/hostname* I can see only one onion address which is the one in my Bitcoin Core config file.

I already tried to delete my bitcoin *onion\_private\_key* file and also deleted my */var/lib/tor/bitcoin-service* folder, but still 2 onion addresses are showing up.
So, where is it Bitcoin Core picking up the other onion address?
Can anyone help me?

**Tags:** tor, services

> **Comments:**
> **username_0**: I'll try today after work and will let you know @Prayank  
> **username_0**: @Prayank if I remove those lines, the service won't be controlled by Tor any more, if I understand correctly. Which was the point of that config. However, I'm not using that config any more. If I get back to it, I'll come back to this thread. Thank you!  

---

## 0 answers

