* update changelog

* txAvailable is always true

Refs #2021, #1920

* remove debug message

No additional value. `enterPropose` log message should be enough.

Refs #2021, #1920
This commit is contained in:
Anton Kaliaev
2018-07-23 16:47:15 +04:00
committed by GitHub
parent eb7dea1b0d
commit 94e8252607
2 changed files with 6 additions and 10 deletions

View File

@ -571,10 +571,8 @@ func (cs *ConsensusState) receiveRoutine(maxSteps int) {
var mi msgInfo
select {
case txAvailable := <-cs.mempool.TxsAvailable():
if txAvailable {
cs.handleTxsAvailable()
}
case <-cs.mempool.TxsAvailable():
cs.handleTxsAvailable()
case mi = <-cs.peerMsgQueue:
cs.wal.Write(mi)
// handles proposals, block parts, votes
@ -689,7 +687,6 @@ func (cs *ConsensusState) handleTxsAvailable() {
cs.mtx.Lock()
defer cs.mtx.Unlock()
// we only need to do this for round 0
cs.Logger.Debug("handling available txs", "height to propose", cs.Height)
cs.enterPropose(cs.Height, 0)
}