mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Make regtest and localhost default for bootstrap node
This commit is contained in:
parent
27381b0e98
commit
5b7a8e31d0
5 changed files with 7 additions and 12 deletions
|
@ -45,7 +45,7 @@ public class BootstrapNode {
|
|||
private static final String VERSION = "0.1.3";
|
||||
|
||||
public static final String P2P_ID = "node.p2pId";
|
||||
public static int DEFAULT_P2P_ID = 1; // 0 | 1 | 2 for mainnet/testnet/regtest
|
||||
public static int DEFAULT_P2P_ID = 2; // 0 | 1 | 2 for mainnet/testnet/regtest
|
||||
|
||||
private static Peer peer = null;
|
||||
|
||||
|
@ -60,7 +60,7 @@ public class BootstrapNode {
|
|||
public void start() {
|
||||
int p2pId = env.getProperty(P2P_ID, Integer.class, DEFAULT_P2P_ID);
|
||||
int port = env.getProperty(Node.PORT_KEY, Integer.class, BootstrapNodes.BASE_PORT + p2pId);
|
||||
String name = env.getRequiredProperty(Node.NAME_KEY);
|
||||
String name = env.getProperty(Node.NAME_KEY, BootstrapNodes.LOCALHOST.getName());
|
||||
Logging.setup(name + "_" + port);
|
||||
|
||||
try {
|
||||
|
|
|
@ -32,9 +32,9 @@ public class BootstrapNodeMain extends BitsquareExecutable {
|
|||
}
|
||||
|
||||
protected void customizeOptionParsing(OptionParser parser) {
|
||||
parser.accepts(Node.NAME_KEY, description("Name of this node", null))
|
||||
parser.accepts(Node.NAME_KEY, description("Name of this node", BootstrapNodes.LOCALHOST.getName()))
|
||||
.withRequiredArg()
|
||||
.isRequired();
|
||||
.ofType(String.class);
|
||||
parser.accepts(Node.PORT_KEY, description("Port to listen on", BootstrapNodes.BASE_PORT))
|
||||
.withRequiredArg()
|
||||
.ofType(int.class);
|
||||
|
|
|
@ -28,8 +28,3 @@ $JAVA_HOME/bin/javapackager \
|
|||
-outfile Bitsquare
|
||||
|
||||
cd package/linux
|
||||
|
||||
# TODO: Figure out where LICENSE file goes so distros don't complain about "low quality" packages.
|
||||
# -BlicenseFile=LICENSE comlains about missing file (Bundler DEB Installer skipped because of a configuration problem: Specified license file is missing.
|
||||
# Advice to fix: Make sure that references a file in the app resources, and that it is relative to the
|
||||
# basedir.)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
[Setup]
|
||||
AppId={{bitsquare}}
|
||||
AppName=Bitsquare
|
||||
AppVersion=0.1.1
|
||||
AppVersion=0.2.1
|
||||
AppVerName=Bitsquare
|
||||
AppPublisher=Bitsquare
|
||||
AppComments=Bitsquare
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
cd ..\..\
|
||||
|
||||
:: edit iss file -> AppVersion=0.1.1
|
||||
:: edit iss file -> AppVersion=0.2.1
|
||||
|
||||
:: Copy jar file from mac build (1.jar from processed folder) to windows
|
||||
:: edit -> -BappVersion=0.2.1 and -srcfiles
|
||||
|
|
Loading…
Add table
Reference in a new issue