mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-16 22:51:22 +00:00
minor comments/changes
This commit is contained in:
@ -352,7 +352,7 @@ func (peer *bpPeer) setLogger(l log.Logger) {
|
|||||||
|
|
||||||
func (peer *bpPeer) resetMonitor() {
|
func (peer *bpPeer) resetMonitor() {
|
||||||
peer.recvMonitor = flow.New(time.Second, time.Second*40)
|
peer.recvMonitor = flow.New(time.Second, time.Second*40)
|
||||||
var initialValue = float64(minRecvRate) * math.E
|
initialValue := float64(minRecvRate) * math.E
|
||||||
peer.recvMonitor.SetREMA(initialValue)
|
peer.recvMonitor.SetREMA(initialValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ const (
|
|||||||
statusUpdateIntervalSeconds = 10
|
statusUpdateIntervalSeconds = 10
|
||||||
// check if we should switch to consensus reactor
|
// check if we should switch to consensus reactor
|
||||||
switchToConsensusIntervalSeconds = 1
|
switchToConsensusIntervalSeconds = 1
|
||||||
maxBlockchainResponseSize = types.MaxBlockSize + 2
|
maxBlockchainResponseSize = types.MaxBlockSize + 2 // TODO
|
||||||
)
|
)
|
||||||
|
|
||||||
type consensusReactor interface {
|
type consensusReactor interface {
|
||||||
|
@ -12,11 +12,6 @@ import (
|
|||||||
cmn "github.com/tendermint/tmlibs/common"
|
cmn "github.com/tendermint/tmlibs/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
//------------------------------------------------------------
|
|
||||||
// we store the gendoc in the db
|
|
||||||
|
|
||||||
var GenDocKey = []byte("GenDocKey")
|
|
||||||
|
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
// core types for a genesis definition
|
// core types for a genesis definition
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ import (
|
|||||||
"github.com/tendermint/tmlibs/log"
|
"github.com/tendermint/tmlibs/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// TODO: type ?
|
||||||
const (
|
const (
|
||||||
stepNone = 0 // Used to distinguish the initial state
|
stepNone = 0 // Used to distinguish the initial state
|
||||||
stepPropose = 1
|
stepPropose = 1
|
||||||
|
Reference in New Issue
Block a user