mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Move {MessageModule=>TomP2PMessageModule}#BOOTSTRAP_NODE_*_KEY
This commit is contained in:
parent
9bdb4b4249
commit
8723e9ef0d
@ -22,7 +22,8 @@ import net.sourceforge.argparse4j.inf.ArgumentParserException;
|
||||
import net.sourceforge.argparse4j.inf.Namespace;
|
||||
|
||||
import static io.bitsquare.app.AppModule.APP_NAME_KEY;
|
||||
import static io.bitsquare.msg.MessageModule.*;
|
||||
import static io.bitsquare.msg.MessageModule.NETWORK_INTERFACE_KEY;
|
||||
import static io.bitsquare.msg.tomp2p.TomP2PMessageModule.*;
|
||||
|
||||
public class ArgumentParser {
|
||||
|
||||
|
@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
import net.sourceforge.argparse4j.inf.Namespace;
|
||||
|
||||
import static io.bitsquare.msg.MessageModule.*;
|
||||
import static io.bitsquare.msg.tomp2p.TomP2PMessageModule.*;
|
||||
|
||||
public class SeedNode {
|
||||
private static final Logger log = LoggerFactory.getLogger(SeedNode.class);
|
||||
|
@ -50,7 +50,8 @@ import lighthouse.files.AppDirectory;
|
||||
import net.sourceforge.argparse4j.inf.Namespace;
|
||||
|
||||
import static io.bitsquare.app.AppModule.APP_NAME_KEY;
|
||||
import static io.bitsquare.msg.MessageModule.*;
|
||||
import static io.bitsquare.msg.MessageModule.NETWORK_INTERFACE_KEY;
|
||||
import static io.bitsquare.msg.tomp2p.TomP2PMessageModule.*;
|
||||
|
||||
public class Main extends Application {
|
||||
private static final Logger log = LoggerFactory.getLogger(Main.class);
|
||||
|
@ -26,9 +26,6 @@ import java.util.Properties;
|
||||
|
||||
public abstract class MessageModule extends BitsquareModule {
|
||||
|
||||
public static final String BOOTSTRAP_NODE_ID_KEY = "id";
|
||||
public static final String BOOTSTRAP_NODE_IP_KEY = "ip";
|
||||
public static final String BOOTSTRAP_NODE_PORT_KEY = "port";
|
||||
public static final String NETWORK_INTERFACE_KEY = "networkInterface";
|
||||
|
||||
protected MessageModule(Properties properties) {
|
||||
|
@ -29,6 +29,10 @@ import static io.bitsquare.network.BootstrapNodes.DEFAULT_BOOTSTRAP_NODE;
|
||||
|
||||
public class TomP2PMessageModule extends MessageModule {
|
||||
|
||||
public static final String BOOTSTRAP_NODE_ID_KEY = "id";
|
||||
public static final String BOOTSTRAP_NODE_IP_KEY = "ip";
|
||||
public static final String BOOTSTRAP_NODE_PORT_KEY = "port";
|
||||
|
||||
public TomP2PMessageModule(Properties properties) {
|
||||
super(properties);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user