induce direct peering

This commit is contained in:
Cassandra Heart 2024-10-23 15:57:35 -05:00
parent 1d493f96d7
commit 9faad17443
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -215,7 +215,16 @@ func NewBlossomSub(
blossomOpts := []blossomsub.Option{} blossomOpts := []blossomsub.Option{}
if isBootstrapPeer { 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.WithValidateQueueSize(1024))
blossomOpts = append(blossomOpts, blossomsub.WithDirectPeers(
[]peer.AddrInfo{
*peerInfo,
},
))
} }
if tracer != nil { if tracer != nil {
blossomOpts = append(blossomOpts, blossomsub.WithEventTracer(tracer)) blossomOpts = append(blossomOpts, blossomsub.WithEventTracer(tracer))