mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-15 04:35:17 +00:00
induce direct peering
This commit is contained in:
parent
1d493f96d7
commit
9faad17443
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user