FWIW IP address on range 10.0.0.0 to 10.255.255.255 is part of private/local network, not internet.
I don't know the correct terminology for the difference between 127.0.0.1 and the range 10.0.0.0 to 10.255.255.255. Everything is local but it's not some thing. That range is for LAN? and 127.0.0.1 is for same machine.
I don't think the solution is as simple as changing the electrs configuration to use 10.152.152.10:9111 instead of 127.0.0.1:8333 because electrs isn't supposed to connect to the internet.
"
romanz/electrs" right?
Otherwise, Blockstream's fork is designed towards being a public Electrum server.
Try setting that option if it can actually connect to Bitcoin Core (
p2p).
If it did, try "
127.0.0.1:50001" in your "
electrum_rpc_addr" config.
Since electrs will only listen for Electrum clients on that address not the one in "
daemon_p2p_addr", other clients will not find your server.
electrum_rpc_addr is already by default 127.0.0.1:50001 so I didn't need to make that change.
I think I understand now that daemon-p2p-addr is for electrs to connect to bitcoin-qt. I think it's very strange though that it can't be done locally. It makes me wonder why it can't be done locally, is there a good reason for why not?
Hopefully there are no security downsides to it being done this way. But it's still good that other electrum clients can't find my electrum server as long as I don't change the electrum_rpc_addr.
But Unfortunately it wasn't fixed with -daemon-p2p-addr 10.152.152.10:9111
It only changed the error to now being "receiving on an empty and disconnected channel". I can't find any useful information on on that error. It seems most people with that error solved it with -whitelist=download@127.0.0.1 on bitcoin-qt configuration. I tried that but it doesn't help. I tried also -whitelist=download@10.152.152.10
I also tried setting maxconnections to 12. It was default before.
It's very difficult for me to solve this because I'm pretty much just guessing and shooting in the dark because I don't have such a deep understanding of how everything works. And I think it shouldn't be this hard for an end user to start using electrs. Maybe it's because it's on whonix that it's more difficult.
The bitcoin.conf is quite standard and mostly defaults:
server=1
listen=0
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
txindex=1
prune=0
proxy=10.152.152.10:9111
Also have rpcuser and rpcpassword configured but I of course won't share what it is set to.