From 951df62408a42209660adfbed46461fa6246d8e5 Mon Sep 17 00:00:00 2001 From: turuslan Date: Thu, 14 Nov 2024 20:51:22 +0500 Subject: [PATCH] fix grandpa seen Signed-off-by: turuslan --- core/network/impl/protocols/grandpa_protocol.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/network/impl/protocols/grandpa_protocol.cpp b/core/network/impl/protocols/grandpa_protocol.cpp index 21d6a26c1f..285756df22 100644 --- a/core/network/impl/protocols/grandpa_protocol.cpp +++ b/core/network/impl/protocols/grandpa_protocol.cpp @@ -475,6 +475,9 @@ namespace kagome::network { } bool GrandpaProtocol::write(const PeerId &peer_id, RawMessage raw_message) { + if (not notifications_->peerOut(peer_id)) { + return false; + } if (raw_message.hash) { if (not seen_.add(peer_id, *raw_message.hash)) { return false;