diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-31 07:56:32 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-31 07:56:32 +0800 |
commit | 7f100e96101a057cba7b2d5c58c12d2f7accf381 (patch) | |
tree | e6401cf299f5d88d542af0b2a70831a116791b15 /ethereum.go | |
parent | 7ccf51fd3035aaba8ed3eda0ca8e3b01edaaa2cf (diff) | |
download | dexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.tar.gz dexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.tar.zst dexon-7f100e96101a057cba7b2d5c58c12d2f7accf381.zip |
Self connect detect
Diffstat (limited to 'ethereum.go')
-rw-r--r-- | ethereum.go | 2 |
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 { |