StopPeerForError in blockchain and consensus

This commit is contained in:
Ethan Buchman
2018-01-21 13:32:04 -05:00
parent 813bb6af96
commit ee674f919f
9 changed files with 40 additions and 30 deletions
+2 -2
View File
@@ -101,8 +101,8 @@ type PeerState interface {
}
// Send new mempool txs to peer.
// TODO: Handle mempool or reactor shutdown?
// As is this routine may block forever if no new txs come in.
// TODO: Handle mempool or reactor shutdown - as is this routine
// may block forever if no new txs come in.
func (memR *MempoolReactor) broadcastTxRoutine(peer p2p.Peer) {
if !memR.config.Broadcast {
return