Bug fix - peer Up calculation #2

This commit is contained in:
jdl
2026-06-15 06:19:20 +02:00
parent d02f47cce6
commit b4320c9330

View File

@@ -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 {