mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
apply to set early
This commit is contained in:
parent
75716be4fa
commit
6fba1a3cd9
@ -83,9 +83,10 @@ func (e *DataClockConsensusEngine) validateTxMessage(peerID peer.ID, message *pb
|
||||
frameNumber,
|
||||
mint.Signature.PublicKey.KeyValue,
|
||||
)
|
||||
e.stagedTransactionsMx.RLock()
|
||||
e.stagedTransactionsMx.Lock()
|
||||
_, ok := e.stagedTransactionsSet[id]
|
||||
e.stagedTransactionsMx.RUnlock()
|
||||
e.stagedTransactionsSet[id] = struct{}{}
|
||||
e.stagedTransactionsMx.Unlock()
|
||||
if ok {
|
||||
return p2p.ValidationResultReject
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user