only ignore, and use peer id of sender, not hop

This commit is contained in:
Cassandra Heart 2024-11-27 00:52:55 -06:00
parent 4753178026
commit 87f4d7014c
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -89,8 +89,8 @@ func (e *DataClockConsensusEngine) validateTxMessage(peerID peer.ID, message *pb
e.validationFilter[id] = struct{}{}
e.validationFilterMx.Unlock()
if ok {
e.pubSub.AddPeerScore([]byte(peerID), -1000000)
return p2p.ValidationResultReject
e.pubSub.AddPeerScore([]byte(message.From), -1000000)
return p2p.ValidationResultIgnore
}
if frameNumber+2 < head.FrameNumber {
return p2p.ValidationResultIgnore