Bug fix - peer Up calculation #2
This commit is contained in:
@@ -57,7 +57,7 @@ func (p *Peer) LastHandshakeTime() time.Time {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *Peer) Up() bool {
|
func (p *Peer) Up() bool {
|
||||||
return time.Since(p.LastPing) > 3*PingInterval
|
return time.Since(p.LastPing) < 3*PingInterval
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Peer) CanRelay() bool {
|
func (p *Peer) CanRelay() bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user