aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2016-10-19 19:04:55 +0800
committerFelix Lange <fjl@twurst.com>2016-11-09 09:12:53 +0800
commit49da42983af7a775695166689e5bf701bcec4f81 (patch)
tree2c325a4852695697cc9616a3eac99a432711abdb /eth
parent7db7109a5b53c339f00e9c05ac826b3dbd1f98e1 (diff)
downloadgo-tangerine-49da42983af7a775695166689e5bf701bcec4f81.tar
go-tangerine-49da42983af7a775695166689e5bf701bcec4f81.tar.gz
go-tangerine-49da42983af7a775695166689e5bf701bcec4f81.tar.bz2
go-tangerine-49da42983af7a775695166689e5bf701bcec4f81.tar.lz
go-tangerine-49da42983af7a775695166689e5bf701bcec4f81.tar.xz
go-tangerine-49da42983af7a775695166689e5bf701bcec4f81.tar.zst
go-tangerine-49da42983af7a775695166689e5bf701bcec4f81.zip
p2p/discv5: added new topic discovery package
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 10018aeaa..ec501043a 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -70,7 +70,6 @@ type Config struct {
Genesis string // Genesis JSON to seed the chain database with
FastSync bool // Enables the state download based fast synchronisation algorithm
LightMode bool // Running in light client mode
- NoDefSrv bool // No default LES server
LightServ int // Maximum percentage of time allowed for serving LES requests
LightPeers int // Maximum number of LES client peers
MaxPeers int // Maximum number of global peers
@@ -106,7 +105,7 @@ type Config struct {
}
type LesServer interface {
- Start()
+ Start(srvr *p2p.Server)
Stop()
Protocols() []p2p.Protocol
}
@@ -434,7 +433,7 @@ func (s *Ethereum) Start(srvr *p2p.Server) error {
}
s.protocolManager.Start()
if s.lesServer != nil {
- s.lesServer.Start()
+ s.lesServer.Start(srvr)
}
return nil
}