mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-05 15:47:07 +00:00
start/stop the book with reactor
Refs https://github.com/tendermint/tendermint/issues/335
This commit is contained in:
committed by
Ethan Buchman
parent
17e6ae813f
commit
332f7056f7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user