mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 07:00:54 +00:00
now ignoring pubsub messages upon receving invalid-signed-records
This commit is contained in:
@ -229,7 +229,9 @@ class GossipSub(IPubsubRouter, Service):
|
||||
"""
|
||||
# Process the senderRecord if sent
|
||||
if isinstance(self.pubsub, Pubsub):
|
||||
_ = maybe_consume_signed_record(rpc, self.pubsub.host)
|
||||
if not maybe_consume_signed_record(rpc, self.pubsub.host):
|
||||
logger.error("Received an invalid-signed-record, ignoring the message")
|
||||
return
|
||||
|
||||
control_message = rpc.control
|
||||
|
||||
|
||||
Reference in New Issue
Block a user