mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 13:34:26 +00:00
validated always, even explicit peers
This commit is contained in:
parent
eea48f8bd5
commit
cc3a0c29c0
@ -392,8 +392,7 @@ method rpcHandler*(g: GossipSub,
|
||||
trace "dropping message due to failed signature verification"
|
||||
continue
|
||||
|
||||
# explicit peers skip validation!
|
||||
if not peer.peerInfo.maintain and not (await g.validate(msg)):
|
||||
if not (await g.validate(msg)):
|
||||
trace "dropping message due to failed validation"
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user