fix: resolve unreachable node by fixing Tor hidden service and enabling IPv4 bind#20
Open
yoshiha-ji wants to merge 3 commits into
Open
fix: resolve unreachable node by fixing Tor hidden service and enabling IPv4 bind#20yoshiha-ji wants to merge 3 commits into
yoshiha-ji wants to merge 3 commits into
Conversation
Automated fix generated by Bounty Sniffer + DeepSeek analysis. Target: Raimo33#1 Files: tor/torrc, docker-compose.yml, bitcoin.conf
Automated fix generated by Bounty Sniffer + DeepSeek analysis. Target: Raimo33#1 Files: tor/torrc, docker-compose.yml, bitcoin.conf
Automated fix generated by Bounty Sniffer + DeepSeek analysis. Target: Raimo33#1 Files: tor/torrc, docker-compose.yml, bitcoin.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Bitcoin node was unreachable due to zero inbound connections. This was caused by an incorrect Tor hidden service configuration and the node being set to only accept connections over Tor (
onion=1), while the Tor hidden service was not functioning.Root Cause
The Tor container's hidden service configuration was likely missing or misconfigured, with no proper
HiddenServicePortforwarding to the Bitcoin node's port. Additionally, the Bitcoin node was configured to only listen on the onion address (onion=1), making it completely dependent on a non-functional Tor hidden service.Fix
tor/torrcto correctly set up a hidden service directory and port forward from port 8333 to the Bitcoin container's port 8333..onionaddress is retained across restarts.bitcoin.confto bind to all IPv4 interfaces (bind=0.0.0.0) and disabled the onion-only mode (onion=0), allowing the node to accept inbound connections over both clearnet and Tor.docker-compose.ymlto use named volumes, proper network attachment, and a dedicated Tor image with the correct configuration mount.Test Plan
.onionaddress (check withtor-resolveorcurl --socks5-hostname).bitcoin-cli getpeerinfoto see incoming connections, ensuring inbound connections appear both from clearnet and Tor addresses.