From 12bed218d0a3e7053521f2f09f3a3f6e32857553 Mon Sep 17 00:00:00 2001 From: AnkushinDaniil Date: Tue, 26 Nov 2024 19:19:05 +0700 Subject: [PATCH] Revert debug changes --- p2p/p2p.go | 2 +- p2p/starknet/handlers.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/p2p/p2p.go b/p2p/p2p.go index 2767e06e2f..fd5ad3093f 100644 --- a/p2p/p2p.go +++ b/p2p/p2p.go @@ -167,7 +167,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.Prefix+"/kad/SN_SEPOLIA/1.0.0"), + dht.ProtocolPrefix(starknet.Prefix), dht.BootstrapPeers(addrInfos...), dht.RoutingTableRefreshPeriod(routingTableRefreshPeriod), dht.Mode(dht.ModeServer), diff --git a/p2p/starknet/handlers.go b/p2p/starknet/handlers.go index f1311ea2e1..28c4eee5f3 100644 --- a/p2p/starknet/handlers.go +++ b/p2p/starknet/handlers.go @@ -56,7 +56,6 @@ func getBuffer() *bytes.Buffer { func streamHandler[ReqT proto.Message](ctx context.Context, wg *sync.WaitGroup, stream network.Stream, reqHandler func(req ReqT) (iter.Seq[proto.Message], error), log utils.SimpleLogger, ) { - fmt.Println("streamHandler") wg.Add(1) defer wg.Done()