Skip to content

Commit

Permalink
lntest: disable tor connection in bitcoind
Browse files Browse the repository at this point in the history
We are not testing tor behavior so we disable it for easier debugging.
  • Loading branch information
yyforyongyu committed Nov 3, 2024
1 parent 1a9ce2a commit 501546c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lntest/bitcoind_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ func newBackend(miner string, netParams *chaincfg.Params, extraArgs []string,
zmqTxAddr := fmt.Sprintf("tcp://127.0.0.1:%d", port.NextAvailablePort())
rpcPort := port.NextAvailablePort()
p2pPort := port.NextAvailablePort()
torBindPort := port.NextAvailablePort()

cmdArgs := []string{
"-datadir=" + tempBitcoindDir,
Expand All @@ -125,12 +124,12 @@ func newBackend(miner string, netParams *chaincfg.Params, extraArgs []string,
"220110063096c221be9933c82d38e1",
fmt.Sprintf("-rpcport=%d", rpcPort),
fmt.Sprintf("-port=%d", p2pPort),
fmt.Sprintf("-bind=127.0.0.1:%d=onion", torBindPort),
"-zmqpubrawblock=" + zmqBlockAddr,
"-zmqpubrawtx=" + zmqTxAddr,
"-debug",
"-debugexclude=libevent",
"-debuglogfile=" + logFile,
"-listenonion=0",
}
cmdArgs = append(cmdArgs, extraArgs...)
bitcoind := exec.Command("bitcoind", cmdArgs...)
Expand Down

0 comments on commit 501546c

Please sign in to comment.