mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-13 15:38:21 +00:00
Update score decay behaviour (#1442)
This commit is contained in:
parent
f634f073a8
commit
37679b8898
@ -199,6 +199,8 @@ impl Score {
|
|||||||
<= Some(BANNED_BEFORE_DECAY)
|
<= Some(BANNED_BEFORE_DECAY)
|
||||||
{
|
{
|
||||||
// The peer is banned and still within the ban timeout. Do not update it's score.
|
// The peer is banned and still within the ban timeout. Do not update it's score.
|
||||||
|
// Update last_updated so that the decay begins correctly when ready.
|
||||||
|
self.last_updated = now;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user