fixes from review

This commit is contained in:
Ethan Buchman
2017-08-04 21:36:11 -04:00
parent 043c6018b4
commit fb47ca6d35
2 changed files with 8 additions and 4 deletions

View File

@ -24,6 +24,10 @@ import (
//-----------------------------------------------------------------------------
// Config
const (
proposalHeartbeatIntervalSeconds = 2
)
//-----------------------------------------------------------------------------
// Errors
@ -833,7 +837,7 @@ func (cs *ConsensusState) proposalHeartbeat(height, round int) {
heartbeatEvent := types.EventDataProposalHeartbeat{heartbeat}
types.FireEventProposalHeartbeat(cs.evsw, heartbeatEvent)
counter += 1
time.Sleep(time.Second)
time.Sleep(proposalHeartbeatIntervalSeconds * time.Second)
}
}