aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'dex/handler.go')
-rw-r--r--dex/handler.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/dex/handler.go b/dex/handler.go
index b8b39c6f4..df5516f62 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -79,7 +79,8 @@ const (
recordChanSize = 10240
- maxPullPeers = 3
+ maxPullPeers = 3
+ maxPullVotePeers = 1
pullVoteRateLimit = 10 * time.Second
)
@@ -1115,7 +1116,7 @@ func (pm *ProtocolManager) BroadcastPullVotes(
round: pos.Round,
}
for idx, peer := range pm.peers.PeersWithLabel(label) {
- if idx >= maxPullPeers {
+ if idx >= maxPullVotePeers {
break
}
peer.AsyncSendPullVotes(pos)