diff --git a/blockchain/pool.go b/blockchain/pool.go index e1288c9fa..924880c08 100644 --- a/blockchain/pool.go +++ b/blockchain/pool.go @@ -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) } diff --git a/blockchain/reactor.go b/blockchain/reactor.go index efa6e2f05..e4b63ca2a 100644 --- a/blockchain/reactor.go +++ b/blockchain/reactor.go @@ -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 { diff --git a/types/genesis.go b/types/genesis.go index 23b14c9e9..17078b6fe 100644 --- a/types/genesis.go +++ b/types/genesis.go @@ -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 diff --git a/types/priv_validator.go b/types/priv_validator.go index b96e988db..3e84e7f36 100644 --- a/types/priv_validator.go +++ b/types/priv_validator.go @@ -15,6 +15,7 @@ import ( "github.com/tendermint/tmlibs/log" ) +// TODO: type ? const ( stepNone = 0 // Used to distinguish the initial state stepPropose = 1