From 941a0f715327a341accc371cd727a3eeee42a2d2 Mon Sep 17 00:00:00 2001 From: Matija Petrunic Date: Thu, 16 Sep 2021 16:31:36 +0200 Subject: [PATCH] Update peer score tracker creation to include lotus tracer --- node/modules/lp2p/pubsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/modules/lp2p/pubsub.go b/node/modules/lp2p/pubsub.go index a071b36a5..25ee4963f 100644 --- a/node/modules/lp2p/pubsub.go +++ b/node/modules/lp2p/pubsub.go @@ -412,7 +412,7 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) { trw := newTracerWrapper(nil, lt) options = append(options, pubsub.WithEventTracer(trw)) - pst := newPeerScoreTracker(nil, in.Sk) + pst := newPeerScoreTracker(lt, in.Sk) options = append(options, pubsub.WithPeerScoreInspect(pst.UpdatePeerScore, 10*time.Second)) }