Update score decay behaviour (#1442)

This commit is contained in:
Age Manning
2020-08-03 20:46:08 +10:00
committed by GitHub
parent f634f073a8
commit 37679b8898

View File

@@ -199,6 +199,8 @@ impl Score {
<= Some(BANNED_BEFORE_DECAY)
{
// 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;
}