Merge pull request #1869 from filecoin-project/feat/drand-pubsub

Add pubsub support to drand beacon
This commit is contained in:
Jakub Sztandera
2020-05-29 18:06:38 +02:00
committed by GitHub
7 changed files with 54 additions and 28 deletions
+1
View File
@@ -38,6 +38,7 @@ func GossipSub(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, nn dtyp
options := []pubsub.Option{
// Gossipsubv1.1 configuration
pubsub.WithFloodPublish(true),
pubsub.WithMessageIdFn(HashMsgId),
pubsub.WithPeerScore(
&pubsub.PeerScoreParams{
AppSpecificScore: func(p peer.ID) float64 {