Browse Source

more fixes from review

pull/342/head
Ethan Buchman 8 years ago
parent
commit
f30a9752e2
3 changed files with 6 additions and 3 deletions
  1. +1
    -1
      consensus/reactor.go
  2. +1
    -2
      consensus/state.go
  3. +4
    -0
      consensus/ticker.go

+ 1
- 1
consensus/reactor.go View File

@ -672,7 +672,7 @@ OUTER_LOOP:
func (conR *ConsensusReactor) String() string {
// better not to access shared variables
return Fmt("ConsensusReactor") // conR.StringIndented("")
return "ConsensusReactor" // conR.StringIndented("")
}
func (conR *ConsensusReactor) StringIndented(indent string) string {


+ 1
- 2
consensus/state.go View File

@ -189,8 +189,7 @@ func (rs *RoundState) StringShort() string {
//-----------------------------------------------------------------------------
var (
msgQueueSize = 1000
tickTockBufferSize = 10
msgQueueSize = 1000
)
// msgs from the reactor which may update the state


+ 4
- 0
consensus/ticker.go View File

@ -6,6 +6,10 @@ import (
. "github.com/tendermint/go-common"
)
var (
tickTockBufferSize = 10
)
type TimeoutTicker interface {
Start() (bool, error)
Stop() bool


Loading…
Cancel
Save