Skip to content

Commit

Permalink
Fix inbound bandwidth spike after a staked node leaves staking set (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dboehm-avalabs authored Sep 21, 2022
1 parent 381f6de commit cac6fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ func addNodeFlags(fs *flag.FlagSet) {
)
fs.Uint(NetworkPeerListNumValidatorIPsKey, 15, gossipHelpMsg)
fs.Uint(NetworkPeerListValidatorGossipSizeKey, 20, gossipHelpMsg)
fs.Uint(NetworkPeerListNonValidatorGossipSizeKey, 10, gossipHelpMsg)
fs.Uint(NetworkPeerListPeersGossipSizeKey, 0, gossipHelpMsg)
fs.Uint(NetworkPeerListNonValidatorGossipSizeKey, 0, gossipHelpMsg)
fs.Uint(NetworkPeerListPeersGossipSizeKey, 10, gossipHelpMsg)
fs.Duration(NetworkPeerListGossipFreqKey, time.Minute, gossipHelpMsg)

// Public IP Resolution
Expand Down
2 changes: 1 addition & 1 deletion network/peer/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Set interface {
Len() int

// Sample attempts to return a random slice of peers with length [n]. The
// slice will not inclide any duplicates. Only peers that cause the
// slice will not include any duplicates. Only peers that cause the
// [precondition] to return true will be returned in the slice.
Sample(n int, precondition func(Peer) bool) []Peer

Expand Down

0 comments on commit cac6fca

Please sign in to comment.