aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-01-31 07:56:32 +0800
committerobscuren <geffobscura@gmail.com>2014-01-31 07:56:32 +0800
commit7f100e96101a057cba7b2d5c58c12d2f7accf381 (patch)
treee6401cf299f5d88d542af0b2a70831a116791b15 /ethereum.go
parent7ccf51fd3035aaba8ed3eda0ca8e3b01edaaa2cf (diff)
downloaddexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.tar
dexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.tar.gz
dexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.tar.bz2
dexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.tar.lz
dexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.tar.xz
dexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.tar.zst
dexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.zip
Self connect detect
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethereum.go b/ethereum.go
index 72d023f5c..98316cf04 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -72,7 +72,7 @@ func (s *Ethereum) AddPeer(conn net.Conn) {
peer := NewPeer(conn, s, true)
if peer != nil {
- if s.peers.Len() > -1 {
+ if s.peers.Len() > 25 {
log.Println("SEED")
peer.Start(true)
} else {