peer discovery fixes

This commit is contained in:
romanman 2014-10-25 00:35:47 -05:00
parent 779bebc2b3
commit 328a3cc0ad
4 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ public class PeerDiscovery {
// creating the ThreadPoolExecutor
executorPool = new ThreadPoolExecutor(CONFIG.peerDiscoveryWorkers(),
CONFIG.peerDiscoveryWorkers(), 10, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(
CONFIG.peerDiscoveryWorkers()), threadFactory, rejectionHandler);
1000), threadFactory, rejectionHandler);
// start the monitoring thread
monitor = new PeerMonitorThread(executorPool, 1);

View File

@ -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

View File

@ -71,7 +71,7 @@
<dependency>
<groupId>org.ethereum</groupId>
<artifactId>ethereumj</artifactId>
<version>0.7.2.20141024.2336</version>
<version>0.7.2.20141025.0030</version>
</dependency>
<dependency>

View File

@ -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]