eth, les: defer starting LES service until ETH initial sync is finished

This commit is contained in:
Zsolt Felfoldi
2016-12-09 09:03:22 +01:00
parent c8130df1d9
commit c57c54ce96
5 changed files with 42 additions and 5 deletions

View File

@ -104,6 +104,7 @@ type Config struct {
type LesServer interface {
Start(srvr *p2p.Server)
Synced()
Stop()
Protocols() []p2p.Protocol
}
@ -145,6 +146,7 @@ type Ethereum struct {
func (s *Ethereum) AddLesServer(ls LesServer) {
s.lesServer = ls
s.protocolManager.lesServer = ls
}
// New creates a new Ethereum object (including the