From 328a3cc0ad972879a7ab2ac41cf86fea1be5fa19 Mon Sep 17 00:00:00 2001 From: romanman Date: Sat, 25 Oct 2014 00:35:47 -0500 Subject: [PATCH] peer discovery fixes --- .../main/java/org/ethereum/net/peerdiscovery/PeerDiscovery.java | 2 +- ethereumj-core/src/main/resources/system.properties | 2 +- ethereumj-studio/pom.xml | 2 +- ethereumj-studio/src/main/resources/system.properties | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/PeerDiscovery.java b/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/PeerDiscovery.java index 82287ece..c4fc07c5 100644 --- a/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/PeerDiscovery.java +++ b/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/PeerDiscovery.java @@ -40,7 +40,7 @@ public class PeerDiscovery { // creating the ThreadPoolExecutor executorPool = new ThreadPoolExecutor(CONFIG.peerDiscoveryWorkers(), CONFIG.peerDiscoveryWorkers(), 10, TimeUnit.SECONDS, new ArrayBlockingQueue( - CONFIG.peerDiscoveryWorkers()), threadFactory, rejectionHandler); + 1000), threadFactory, rejectionHandler); // start the monitoring thread monitor = new PeerMonitorThread(executorPool, 1); diff --git a/ethereumj-core/src/main/resources/system.properties b/ethereumj-core/src/main/resources/system.properties index 601a5b70..6b4061e1 100644 --- a/ethereumj-core/src/main/resources/system.properties +++ b/ethereumj-core/src/main/resources/system.properties @@ -72,7 +72,7 @@ samples.dir = samples # the existing database will be # destroyed and all the data will be # downloaded from peers again -database.reset = true +database.reset = false # place to save physical storage files database.dir = database diff --git a/ethereumj-studio/pom.xml b/ethereumj-studio/pom.xml index d5120ed0..fcd6c0e0 100644 --- a/ethereumj-studio/pom.xml +++ b/ethereumj-studio/pom.xml @@ -71,7 +71,7 @@ org.ethereum ethereumj - 0.7.2.20141024.2336 + 0.7.2.20141025.0030 diff --git a/ethereumj-studio/src/main/resources/system.properties b/ethereumj-studio/src/main/resources/system.properties index 25dd64ee..aefc49e7 100644 --- a/ethereumj-studio/src/main/resources/system.properties +++ b/ethereumj-studio/src/main/resources/system.properties @@ -49,7 +49,7 @@ peer.discovery = true # number of workers that # tastes the peers for being # online [1..10] -peer.discovery.workers = 1 +peer.discovery.workers = 4 # connection timeout for trying to # connect to a peer [seconds]