Enabled floodPublish

This commit is contained in:
Alberto Soutullo
2024-01-19 11:18:38 +01:00
parent 621597c67c
commit 8b7933869c

View File

@@ -195,7 +195,7 @@ func main() {
}
fmt.Printf("Hostname: %s, ID: %s\n", hostname, h.ID())
ps, err := pubsub.NewGossipSub(ctx, h, pubsub.WithGossipSubParams(gsParams))
ps, err := pubsub.NewGossipSub(ctx, h, pubsub.WithGossipSubParams(gsParams), pubsub.WithFloodPublish(true))
if err != nil {
println("Error starting pubsub protocol", err)
panic(err)