mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
don't set within validator
This commit is contained in:
parent
7b2de084fd
commit
70b30ddde1
@ -83,10 +83,9 @@ func (e *DataClockConsensusEngine) validateTxMessage(peerID peer.ID, message *pb
|
||||
frameNumber,
|
||||
mint.Signature.PublicKey.KeyValue,
|
||||
)
|
||||
e.stagedTransactionsMx.Lock()
|
||||
e.stagedTransactionsMx.RLock()
|
||||
_, ok := e.stagedTransactionsSet[id]
|
||||
e.stagedTransactionsSet[id] = struct{}{}
|
||||
e.stagedTransactionsMx.Unlock()
|
||||
e.stagedTransactionsMx.RUnlock()
|
||||
if ok {
|
||||
e.pubSub.AddPeerScore([]byte(peerID), -1000000)
|
||||
return p2p.ValidationResultReject
|
||||
|
||||
Loading…
Reference in New Issue
Block a user