panic if self.node is nil when set on bzz (TEMPORARY)

This commit is contained in:
zelig 2015-05-13 21:35:26 +02:00
parent 8ad5bc8450
commit 936561e90e

View file

@ -468,7 +468,11 @@ func (s *Ethereum) Start() error {
if s.DPA != nil {
s.DPA.Start()
s.netStore.Start(s.net.Self())
selfNode := s.net.Self()
if selfNode == nil {
panic("self is nil")
}
s.netStore.Start()
go bzz.StartHttpServer(s.DPA)
}