Skip to content

Commit

Permalink
Remove additional "kad" substring from p2p discovery protocol name (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann authored Sep 2, 2024
1 parent 52d16ab commit cb350df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func NewWithHost(p2phost host.Host, peers string, feederNode bool, bc *blockchai

func makeDHT(p2phost host.Host, addrInfos []peer.AddrInfo) (*dht.IpfsDHT, error) {
return dht.New(context.Background(), p2phost,
dht.ProtocolPrefix(starknet.KadPrefix()),
dht.ProtocolPrefix(starknet.Prefix),
dht.BootstrapPeers(addrInfos...),
dht.RoutingTableRefreshPeriod(routingTableRefreshPeriod),
dht.Mode(dht.ModeServer),
Expand Down
4 changes: 0 additions & 4 deletions p2p/starknet/ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import (

const Prefix = "/starknet"

func KadPrefix() protocol.ID {
return Prefix + "/kad"
}

func HeadersPID() protocol.ID {
return Prefix + "/headers/0.1.0-rc.0"
}
Expand Down

0 comments on commit cb350df

Please sign in to comment.