Rename name, port properties to node.name, node.port

This commit is contained in:
Chris Beams 2014-11-11 21:52:43 +01:00
parent d55a03f2d8
commit ccd5f815f8
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ public class BitsquareAppMain extends BitsquareExecutable {
parser.accepts(USER_DATA_DIR_KEY, "User data directory").withRequiredArg().defaultsTo(DEFAULT_USER_DATA_DIR);
parser.accepts(APP_NAME_KEY, "Application name").withRequiredArg().defaultsTo(DEFAULT_APP_NAME);
parser.accepts(APP_DATA_DIR_KEY, "Application data directory").withRequiredArg().defaultsTo(DEFAULT_APP_DATA_DIR);
parser.accepts(NAME_KEY, "Network name").withRequiredArg();
parser.accepts(NAME_KEY, "Name of this node").withRequiredArg();
parser.accepts(PORT_KEY, "Port to listen on").withRequiredArg().defaultsTo(String.valueOf(Node.DEFAULT_PORT));
parser.accepts(BITCOIN_NETWORK_KEY).withRequiredArg().defaultsTo(BitcoinModule.DEFAULT_BITCOIN_NETWORK);
parser.accepts(BOOTSTRAP_NODE_NAME_KEY).withRequiredArg().defaultsTo(BootstrapNodes.DEFAULT.getName());

View File

@ -20,8 +20,8 @@ package io.bitsquare.network;
import com.google.common.base.Objects;
public final class Node {
public static final String NAME_KEY = "name";
public static final String PORT_KEY = "port";
public static final String NAME_KEY = "node.name";
public static final String PORT_KEY = "node.port";
/**
* Default port is one <a