From b172256d0b330d2b10a0c1c1a4bb8c1bef6ae70b Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 9 Apr 2026 04:22:02 +0300 Subject: [PATCH] peer: update last_attempt when changing peer state to other than Banned --- p2p/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/src/store.rs b/p2p/src/store.rs index 208cd5d8..4b4dde9f 100644 --- a/p2p/src/store.rs +++ b/p2p/src/store.rs @@ -201,7 +201,7 @@ impl PeerStore { peer.flags = new_state; if new_state == State::Banned { peer.last_banned = Utc::now().timestamp(); - } else if new_state == State::Defunct { + } else { peer.last_attempt = Utc::now().timestamp(); }