Introduce io.bitsquare.network.Node#DEFAULT_PORT

This commit is contained in:
Chris Beams 2014-11-06 09:35:51 +01:00
parent ce5155ebdc
commit da163bcc97
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
4 changed files with 14 additions and 7 deletions

View file

@ -17,6 +17,8 @@
package io.bitsquare.msg;
import io.bitsquare.network.Node;
import net.tomp2p.dht.PeerBuilderDHT;
import net.tomp2p.dht.PeerDHT;
import net.tomp2p.nat.PeerBuilderNAT;
@ -37,7 +39,7 @@ public class SeedNodeForTesting {
public static void main(String[] args) throws Exception {
// Define your seed node IP and port
// "127.0.0.1" for localhost or SEED_ID_WAN_1
new SeedNodeForTesting().startSeedNode("localhost", 5000);
new SeedNodeForTesting().startSeedNode("localhost", Node.DEFAULT_PORT);
}
public Thread startSeedNode(String seedNodeId, int seedNodePort) {