mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 05:52:45 +00:00
libp2p: disable self triggering (#3826)
All message processing is done in the validation callbacks, so there's no need to trigger data handlers for messages we publish - the self-publish is async, and therefore has an associated cost
This commit is contained in:
parent
c145916414
commit
24c435abae
@ -2307,7 +2307,8 @@ proc createEth2Node*(rng: ref HmacDrbgContext,
|
||||
pubsub = GossipSub.init(
|
||||
switch = switch,
|
||||
msgIdProvider = msgIdProvider,
|
||||
triggerSelf = true,
|
||||
# We process messages in the validator, so we don't need data callbacks
|
||||
triggerSelf = false,
|
||||
sign = false,
|
||||
verifySignature = false,
|
||||
anonymize = true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user