|
|
@ -42,12 +42,14 @@ func NewPEXReactor(book *AddrBook) *PEXReactor { |
|
|
|
|
|
|
|
func (pexR *PEXReactor) OnStart() error { |
|
|
|
pexR.BaseReactor.OnStart() |
|
|
|
pexR.book.OnStart() |
|
|
|
go pexR.ensurePeersRoutine() |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func (pexR *PEXReactor) OnStop() { |
|
|
|
pexR.BaseReactor.OnStop() |
|
|
|
pexR.book.OnStop() |
|
|
|
} |
|
|
|
|
|
|
|
// Implements Reactor
|
|
|
|