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(
|
pubsub = GossipSub.init(
|
||||||
switch = switch,
|
switch = switch,
|
||||||
msgIdProvider = msgIdProvider,
|
msgIdProvider = msgIdProvider,
|
||||||
triggerSelf = true,
|
# We process messages in the validator, so we don't need data callbacks
|
||||||
|
triggerSelf = false,
|
||||||
sign = false,
|
sign = false,
|
||||||
verifySignature = false,
|
verifySignature = false,
|
||||||
anonymize = true,
|
anonymize = true,
|
||||||
|
|
Loading…
Reference in New Issue