Skip to content

Commit

Permalink
remove relics
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Sep 5, 2023
1 parent 7e84dc1 commit 4520590
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nodebuilder/header/constructors.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/celestiaorg/go-header/store"
"github.com/celestiaorg/go-header/sync"

"github.com/celestiaorg/celestia-node/header"
modfraud "github.com/celestiaorg/celestia-node/nodebuilder/fraud"
modp2p "github.com/celestiaorg/celestia-node/nodebuilder/p2p"
"github.com/celestiaorg/celestia-node/share/eds/byzantine"
Expand All @@ -30,7 +29,7 @@ func newP2PExchange[H libhead.Header[H]](
host host.Host,
conngater *conngater.BasicConnectionGater,
pidstore p2p.PeerIDStore,
) (libhead.Exchange[*header.ExtendedHeader], error) {
) (libhead.Exchange[H], error) {
peers, err := cfg.trustedPeers(bpeers)
if err != nil {
return nil, err
Expand All @@ -40,7 +39,7 @@ func newP2PExchange[H libhead.Header[H]](
ids[index] = peer.ID
host.Peerstore().AddAddrs(peer.ID, peer.Addrs, peerstore.PermanentAddrTTL)
}
exchange, err := p2p.NewExchange[*header.ExtendedHeader](host, ids, conngater,
exchange, err := p2p.NewExchange[H](host, ids, conngater,
p2p.WithParams(cfg.Client),
p2p.WithNetworkID[p2p.ClientParameters](network.String()),
p2p.WithChainID(network.String()),
Expand Down

0 comments on commit 4520590

Please sign in to comment.