Skip to content

Commit

Permalink
fix grandpa seen
Browse files Browse the repository at this point in the history
Signed-off-by: turuslan <[email protected]>
  • Loading branch information
turuslan committed Nov 14, 2024
1 parent d273fac commit 951df62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/network/impl/protocols/grandpa_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 951df62

Please sign in to comment.