Skip to content

Commit

Permalink
pass domain type provider to handshake config
Browse files Browse the repository at this point in the history
  • Loading branch information
y0sher committed Jul 18, 2024
1 parent aad4fff commit c17d23e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions network/p2p/p2p_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,15 @@ func (n *p2pNetwork) setupPeerServices(logger *zap.Logger) error {
}

handshaker := connections.NewHandshaker(n.ctx, &connections.HandshakerCfg{
Streams: n.streamCtrl,
NodeInfos: n.idx,
PeerInfos: n.idx,
ConnIdx: n.idx,
SubnetsIdx: n.idx,
IDService: ids,
Network: n.host.Network(),
SubnetsProvider: subnetsProvider,
Streams: n.streamCtrl,
NodeInfos: n.idx,
PeerInfos: n.idx,
ConnIdx: n.idx,
SubnetsIdx: n.idx,
IDService: ids,
Network: n.host.Network(),
DomainTypeProvider: n.cfg.Network,
SubnetsProvider: subnetsProvider,
}, filters)

n.host.SetStreamHandler(peers.NodeInfoProtocol, handshaker.Handler(logger))
Expand Down

0 comments on commit c17d23e

Please sign in to comment.