From 779bebc2b3082b7e2a8a1b1ae8bd922931de4259 Mon Sep 17 00:00:00 2001 From: romanman Date: Sat, 25 Oct 2014 00:07:54 -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 +- 3 files changed, 3 insertions(+), 3 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 aa194a1e..82287ece 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 @@ -39,7 +39,7 @@ public class PeerDiscovery { // creating the ThreadPoolExecutor executorPool = new ThreadPoolExecutor(CONFIG.peerDiscoveryWorkers(), - 1000, 10, TimeUnit.SECONDS, new ArrayBlockingQueue( + CONFIG.peerDiscoveryWorkers(), 10, TimeUnit.SECONDS, new ArrayBlockingQueue( CONFIG.peerDiscoveryWorkers()), threadFactory, rejectionHandler); // start the monitoring thread diff --git a/ethereumj-core/src/main/resources/system.properties b/ethereumj-core/src/main/resources/system.properties index 6b4061e1..601a5b70 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 = false +database.reset = true # place to save physical storage files database.dir = database diff --git a/ethereumj-studio/pom.xml b/ethereumj-studio/pom.xml index 06759b67..d5120ed0 100644 --- a/ethereumj-studio/pom.xml +++ b/ethereumj-studio/pom.xml @@ -71,7 +71,7 @@ org.ethereum ethereumj - 0.7.2.20141024.2310 + 0.7.2.20141024.2336