Browse Source

minor comments/changes

pull/650/head
Ethan Buchman 7 years ago
parent
commit
29bfcb0a31
4 changed files with 3 additions and 7 deletions
  1. +1
    -1
      blockchain/pool.go
  2. +1
    -1
      blockchain/reactor.go
  3. +0
    -5
      types/genesis.go
  4. +1
    -0
      types/priv_validator.go

+ 1
- 1
blockchain/pool.go View File

@ -352,7 +352,7 @@ func (peer *bpPeer) setLogger(l log.Logger) {
func (peer *bpPeer) resetMonitor() {
peer.recvMonitor = flow.New(time.Second, time.Second*40)
var initialValue = float64(minRecvRate) * math.E
initialValue := float64(minRecvRate) * math.E
peer.recvMonitor.SetREMA(initialValue)
}


+ 1
- 1
blockchain/reactor.go View File

@ -28,7 +28,7 @@ const (
statusUpdateIntervalSeconds = 10
// check if we should switch to consensus reactor
switchToConsensusIntervalSeconds = 1
maxBlockchainResponseSize = types.MaxBlockSize + 2
maxBlockchainResponseSize = types.MaxBlockSize + 2 // TODO
)
type consensusReactor interface {


+ 0
- 5
types/genesis.go View File

@ -12,11 +12,6 @@ import (
cmn "github.com/tendermint/tmlibs/common"
)
//------------------------------------------------------------
// we store the gendoc in the db
var GenDocKey = []byte("GenDocKey")
//------------------------------------------------------------
// core types for a genesis definition


+ 1
- 0
types/priv_validator.go View File

@ -15,6 +15,7 @@ import (
"github.com/tendermint/tmlibs/log"
)
// TODO: type ?
const (
stepNone = 0 // Used to distinguish the initial state
stepPropose = 1


Loading…
Cancel
Save