From 37679b8898918c7af8034293a715e02bb94d4d57 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Mon, 3 Aug 2020 20:46:08 +1000 Subject: [PATCH] Update score decay behaviour (#1442) --- beacon_node/eth2_libp2p/src/peer_manager/score.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon_node/eth2_libp2p/src/peer_manager/score.rs b/beacon_node/eth2_libp2p/src/peer_manager/score.rs index 7226db647..de106d886 100644 --- a/beacon_node/eth2_libp2p/src/peer_manager/score.rs +++ b/beacon_node/eth2_libp2p/src/peer_manager/score.rs @@ -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; }