mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
Pubsub ignore messages from yourself (#4337)
* ignore messages from myself
This commit is contained in:
parent
996f4c7f5a
commit
a949673e33
@ -158,6 +158,10 @@ func (r *Service) subscribe(topic string, validator pubsub.Validator, handle sub
|
||||
continue
|
||||
}
|
||||
|
||||
if msg.ReceivedFrom == r.p2p.PeerID() {
|
||||
continue
|
||||
}
|
||||
|
||||
messageReceivedCounter.WithLabelValues(topic + r.p2p.Encoding().ProtocolSuffix()).Inc()
|
||||
|
||||
go pipeline(msg)
|
||||
|
Loading…
Reference in New Issue
Block a user