Skip to content

Commit

Permalink
Merge pull request #2066 from alvasw/remove_legacy_tor_startup_code
Browse files Browse the repository at this point in the history
Remove legacy Tor startup code
  • Loading branch information
djing-chan authored Apr 16, 2024
2 parents a6980b3 + e3df8f7 commit 7df3232
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 496 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

64 changes: 0 additions & 64 deletions common/src/main/java/bisq/common/io_watcher/DirectoryWatcher.java

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions network/tor/tor/src/main/java/bisq/tor/TorService.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import lombok.extern.slf4j.Slf4j;
import net.freehaven.tor.control.PasswordDigest;

import java.io.File;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
Expand Down Expand Up @@ -79,15 +78,6 @@ public CompletableFuture<Boolean> initialize() {

var nativeTorProcess = new NativeTorProcess(torDataDirPath);
torProcess = Optional.of(nativeTorProcess);

File debugLogFile = torDataDirPath.resolve("debug.log").toFile();
if (debugLogFile.exists()) {
boolean isSuccess = debugLogFile.delete();
if (!isSuccess) {
throw new IllegalStateException("Can't delete old debug.log file");
}
}

nativeTorProcess.start();

Path controlDirPath = torDataDirPath.resolve(NativeTorProcess.CONTROL_DIR_NAME);
Expand Down
Loading

0 comments on commit 7df3232

Please sign in to comment.