From 9faad174438323f514b01ab9aa1ff933627f48f3 Mon Sep 17 00:00:00 2001 From: Cassandra Heart Date: Wed, 23 Oct 2024 15:57:35 -0500 Subject: [PATCH] induce direct peering --- node/p2p/blossomsub.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/node/p2p/blossomsub.go b/node/p2p/blossomsub.go index 252ee43..2b37c0b 100644 --- a/node/p2p/blossomsub.go +++ b/node/p2p/blossomsub.go @@ -215,7 +215,16 @@ func NewBlossomSub( blossomOpts := []blossomsub.Option{} if isBootstrapPeer { + peerInfo, err := peer.AddrInfoFromString("/ip4/185.209.178.191/udp/8336/quic-v1/p2p/QmcKQjpQmLpbDsiif2MuakhHFyxWvqYauPsJDaXnLav7PJ") + if err != nil { + panic(err) + } blossomOpts = append(blossomOpts, blossomsub.WithValidateQueueSize(1024)) + blossomOpts = append(blossomOpts, blossomsub.WithDirectPeers( + []peer.AddrInfo{ + *peerInfo, + }, + )) } if tracer != nil { blossomOpts = append(blossomOpts, blossomsub.WithEventTracer(tracer))