mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
Simplify Service/Reactor pattern
This commit is contained in:
@@ -76,14 +76,16 @@ func NewBlockchainReactor(state *sm.State, store *BlockStore, sync bool) *Blockc
|
||||
return bcR
|
||||
}
|
||||
|
||||
func (bcR *BlockchainReactor) AfterStart() {
|
||||
func (bcR *BlockchainReactor) OnStart() {
|
||||
bcR.BaseReactor.OnStart()
|
||||
if bcR.sync {
|
||||
bcR.pool.Start()
|
||||
go bcR.poolRoutine()
|
||||
}
|
||||
}
|
||||
|
||||
func (bcR *BlockchainReactor) AfterStop() {
|
||||
func (bcR *BlockchainReactor) OnStop() {
|
||||
bcR.BaseReactor.OnStop()
|
||||
bcR.pool.Stop()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user