mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-23 19:37:27 +08:00
only ignore, and use peer id of sender, not hop
This commit is contained in:
parent
4753178026
commit
87f4d7014c
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user