refactor: remove old BlockSyncProtocolID

This commit is contained in:
Aayush
2022-06-08 13:38:56 -04:00
parent e3f1eb29a1
commit 789f212f6c
3 changed files with 4 additions and 9 deletions
-1
View File
@@ -98,7 +98,6 @@ func RunPeerMgr(mctx helpers.MetricsCtx, lc fx.Lifecycle, pmgr *peermgr.PeerMgr)
}
func RunChainExchange(h host.Host, svc exchange.Server) {
h.SetStreamHandler(exchange.BlockSyncProtocolID, svc.HandleStream) // old
h.SetStreamHandler(exchange.ChainExchangeProtocolID, svc.HandleStream) // new
}