validated always, even explicit peers

This commit is contained in:
Giovanni Petrantoni 2020-06-24 12:19:59 +09:00
parent eea48f8bd5
commit cc3a0c29c0

View File

@ -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