Skip to content

Commit

Permalink
fix: avoid to block the chain when failed to send votes
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBSC committed Jun 26, 2023
1 parent 69fd672 commit 4cf7b58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eth/protocols/bsc/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ func (p *Peer) AsyncSendVotes(votes []*types.VoteEnvelope) {
select {
case p.voteBroadcast <- votes:
case <-p.term:
p.Log().Debug("Dropping vote propagation", "count", len(votes))
p.Log().Debug("Dropping vote propagation for closed peer", "count", len(votes))
default:
p.Log().Debug("Dropping vote propagation for abnormal peer", "count", len(votes))
}
}

Expand Down

0 comments on commit 4cf7b58

Please sign in to comment.