mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-26 07:12:16 +00:00
set logger on blockchain pool
This commit is contained in:
parent
0a7b2ab52c
commit
d64a48e0ee
@ -69,9 +69,7 @@ func (pool *BlockPool) OnStart() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pool *BlockPool) OnStop() {
|
func (pool *BlockPool) OnStop() {}
|
||||||
pool.BaseService.OnStop()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Run spawns requesters as needed.
|
// Run spawns requesters as needed.
|
||||||
func (pool *BlockPool) makeRequestersRoutine() {
|
func (pool *BlockPool) makeRequestersRoutine() {
|
||||||
|
@ -12,6 +12,7 @@ import (
|
|||||||
sm "github.com/tendermint/tendermint/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
cmn "github.com/tendermint/tmlibs/common"
|
cmn "github.com/tendermint/tmlibs/common"
|
||||||
|
"github.com/tendermint/tmlibs/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -79,7 +80,13 @@ func NewBlockchainReactor(state *sm.State, proxyAppConn proxy.AppConnConsensus,
|
|||||||
return bcR
|
return bcR
|
||||||
}
|
}
|
||||||
|
|
||||||
// OnStart implements BaseService
|
// SetLogger implements cmn.Service by setting the logger on reactor and pool.
|
||||||
|
func (bcR *BlockchainReactor) SetLogger(l log.Logger) {
|
||||||
|
bcR.BaseService.Logger = l
|
||||||
|
bcR.pool.Logger = l
|
||||||
|
}
|
||||||
|
|
||||||
|
// OnStart implements cmn.Service.
|
||||||
func (bcR *BlockchainReactor) OnStart() error {
|
func (bcR *BlockchainReactor) OnStart() error {
|
||||||
bcR.BaseReactor.OnStart()
|
bcR.BaseReactor.OnStart()
|
||||||
if bcR.fastSync {
|
if bcR.fastSync {
|
||||||
@ -92,7 +99,7 @@ func (bcR *BlockchainReactor) OnStart() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// OnStop implements BaseService
|
// OnStop implements cmn.Service.
|
||||||
func (bcR *BlockchainReactor) OnStop() {
|
func (bcR *BlockchainReactor) OnStop() {
|
||||||
bcR.BaseReactor.OnStop()
|
bcR.BaseReactor.OnStop()
|
||||||
bcR.pool.Stop()
|
bcR.pool.Stop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user