undo some megacheck suggestions

This commit is contained in:
Ethan Buchman
2017-06-23 21:36:47 -04:00
parent 9c3eee0b00
commit 3c0128a680
5 changed files with 21 additions and 22 deletions

View File

@ -212,9 +212,9 @@ func (pool *BlockPool) AddBlock(peerID string, block *types.Block, blockSize int
pool.numPending--
peer := pool.peers[peerID]
peer.decrPending(blockSize)
} // else {
// Bad peer?
// }
} else {
// Bad peer?
}
}
// Sets the peer's alleged blockchain height.
@ -303,7 +303,7 @@ func (pool *BlockPool) sendTimeout(peerID string) {
}
// unused by tendermint; left for debugging purposes
/*func (pool *BlockPool) debug() string {
func (pool *BlockPool) debug() string {
pool.mtx.Lock() // Lock
defer pool.mtx.Unlock()
@ -317,7 +317,7 @@ func (pool *BlockPool) sendTimeout(peerID string) {
}
}
return str
}*/
}
//-------------------------------------