mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 21:36:26 +00:00
evidence: terminate broadcastEvidenceRoutine when peer is stopped (#6069)
This commit is contained in:
@@ -28,3 +28,4 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi
|
||||
- [blockchain/v1] [\#5701](https://github.com/tendermint/tendermint/pull/5701) Handle peers without blocks (@melekes)
|
||||
- [blockchain/v1] \#5711 Fix deadlock (@melekes)
|
||||
- [proxy] \#5078 Fix a bug, where TM does not exit when ABCI app crashes (@melekes)
|
||||
- [evidence] \#6068 Terminate broadcastEvidenceRoutine when peer is stopped (@melekes)
|
||||
|
||||
@@ -129,6 +129,8 @@ func (evR *Reactor) broadcastEvidenceRoutine(peer p2p.Peer) {
|
||||
case <-evR.Quit():
|
||||
return
|
||||
}
|
||||
} else if !peer.IsRunning() || !evR.IsRunning() {
|
||||
return
|
||||
}
|
||||
|
||||
ev := next.Value.(types.Evidence)
|
||||
|
||||
Reference in New Issue
Block a user