Overview - Changes done on bisq's bitcoinj just support onion v2 addresses. - Most of the code needed to support tor/onion services is in https://github.com/bisq-network/bisq (out of scope of this audit) - Upstream tor support in bitcoinj was removed because it was not well maintained and caused problems and there were no volunteers to maintain it (https://github.com/bitcoinj/bitcoinj/pull/1314) - Tor support could be re-enabled upstream by contributing changes done on bisq's bitcoinj and on https://github.com/bisq-network/bisq - Tor support upstream could provide - Connect to peers running behind an onion address - Resolve DNS over tor - Connect via tor to clearnet peers - A mechanism to start a local tor client (orchid or another tor client) Commit review - PeerGroup.addAddress(): don't increase max connections if address already exist https://github.com/bisq-network/bitcoinj/commit/011fe40d971631106980c28df3ed8a51e7e875f6 - No changes suggested. - Created PR upstream https://github.com/bitcoinj/bitcoinj/pull/1741 - Catch PeerDiscoveryException during getPeers call. avoids stack trace when all DNS lookups timeout https://github.com/bisq-network/bitcoinj/commit/834f57a1c17758f46bddb8335f009f010c95ba41 - No changes suggested. - Created PR upstream https://github.com/bitcoinj/bitcoinj/pull/1742 - PeerAddress hashCode() and equals(): add hostname and refactor https://github.com/bisq-network/bitcoinj/commit/0988148bbb05e1d11e718aa421855ee7629d0778 - No changes suggested. - Changes to support connecting to .onion addresses https://github.com/bisq-network/bitcoinj/commit/9f09a8953469bfdbf809384f1c91dab953fe284d - See https://github.com/bisq-network/bitcoinj/pull/24
Overview
Commit review