Skip to content

Commit

Permalink
Do not use isfromBadIP
Browse files Browse the repository at this point in the history
The p2p was not connected due to a restart. Remove IP Tracking
  • Loading branch information
MichaelKim20 committed Nov 22, 2022
1 parent fc5fc3e commit e234086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/p2p/peers/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (p *Status) IsBad(pid peer.ID) bool {

// isBad is the lock-free version of IsBad.
func (p *Status) isBad(pid peer.ID) bool {
return p.isfromBadIP(pid) || p.scorers.IsBadPeerNoLock(pid)
return p.scorers.IsBadPeerNoLock(pid)
}

// NextValidTime gets the earliest possible time it is to contact/dial
Expand Down

0 comments on commit e234086

Please sign in to comment.