From 29bfcb0a31da9647c5ff057cf25850a23a0d45d6 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 11 Sep 2017 15:45:12 -0400 Subject: [PATCH] minor comments/changes --- blockchain/pool.go | 2 +- blockchain/reactor.go | 2 +- types/genesis.go | 5 ----- types/priv_validator.go | 1 + 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/blockchain/pool.go b/blockchain/pool.go index e1288c9f..924880c0 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 efa6e2f0..e4b63ca2 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 23b14c9e..17078b6f 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 b96e988d..3e84e7f3 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