mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-31 18:58:51 -04:00
fix disconnect handling
This commit is contained in:
parent
8347b9f572
commit
f788778f3c
13 changed files with 75 additions and 50 deletions
|
@ -1,13 +1,15 @@
|
|||
package io.bitsquare.p2p.seed;
|
||||
|
||||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
import io.bitsquare.app.Logging;
|
||||
import io.bitsquare.common.UserThread;
|
||||
import io.bitsquare.common.util.Utilities;
|
||||
import org.bitcoinj.crypto.DRMWorkaround;
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.security.Security;
|
||||
import java.util.Random;
|
||||
|
@ -18,7 +20,6 @@ import java.util.concurrent.ThreadFactory;
|
|||
|
||||
public class SeedNodeMain {
|
||||
private static final Logger log = LoggerFactory.getLogger(SeedNodeMain.class);
|
||||
private static SeedNodeMain seedNodeMain;
|
||||
private SeedNode seedNode;
|
||||
|
||||
private boolean stopped;
|
||||
|
@ -27,9 +28,10 @@ public class SeedNodeMain {
|
|||
// eg. 4444 true localhost:7777 localhost:8888
|
||||
// To stop enter: q
|
||||
public static void main(String[] args) throws NoSuchAlgorithmException {
|
||||
|
||||
DRMWorkaround.maybeDisableExportControls();
|
||||
seedNodeMain = new SeedNodeMain(args);
|
||||
Path path = Paths.get("seed_node_log");
|
||||
Logging.setup(path.toString());
|
||||
log.info("Log files under: " + path.toAbsolutePath().toString());
|
||||
new SeedNodeMain(args);
|
||||
}
|
||||
|
||||
public SeedNodeMain(String[] args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue