From 49bd6a6e94b8b6f4ef3497e930cfb493b8ec0fd0 Mon Sep 17 00:00:00 2001
From: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Date: Fri, 24 May 2024 13:55:58 +0200
Subject: [PATCH] Remove litep2p git dependency (#4560)

@serban300 could you please do the same for the MMR crate? Am not sure
what commit was released since there are no release tags in the repo.

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---
 Cargo.lock                                | 5 +++--
 substrate/client/network/Cargo.toml       | 2 +-
 substrate/client/network/types/Cargo.toml | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index a9cc4f9202a..0bdbcfd02eb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8065,8 +8065,9 @@ dependencies = [
 
 [[package]]
 name = "litep2p"
-version = "0.3.0"
-source = "git+https://github.com/paritytech/litep2p?rev=e03a6023882db111beeb24d8c0ceaac0721d3f0f#e03a6023882db111beeb24d8c0ceaac0721d3f0f"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "adf107268459b653df189050c9ae2301253b9c62ceafa993dc69dad29870155c"
 dependencies = [
  "async-trait",
  "bs58 0.4.0",
diff --git a/substrate/client/network/Cargo.toml b/substrate/client/network/Cargo.toml
index 5a469469539..b06d9c73540 100644
--- a/substrate/client/network/Cargo.toml
+++ b/substrate/client/network/Cargo.toml
@@ -59,7 +59,7 @@ sp-blockchain = { path = "../../primitives/blockchain" }
 sp-core = { path = "../../primitives/core" }
 sp-runtime = { path = "../../primitives/runtime" }
 wasm-timer = "0.2"
-litep2p = { git = "https://github.com/paritytech/litep2p", rev = "e03a6023882db111beeb24d8c0ceaac0721d3f0f" }
+litep2p = "0.4.0"
 once_cell = "1.18.0"
 void = "1.0.2"
 schnellru = "0.2.1"
diff --git a/substrate/client/network/types/Cargo.toml b/substrate/client/network/types/Cargo.toml
index f9d9330a439..ed89eca2dd1 100644
--- a/substrate/client/network/types/Cargo.toml
+++ b/substrate/client/network/types/Cargo.toml
@@ -13,7 +13,7 @@ documentation = "https://docs.rs/sc-network-types"
 bs58 = "0.5.0"
 ed25519-dalek = "2.1"
 libp2p-identity = { version = "0.1.3", features = ["ed25519", "peerid"] }
-litep2p = { git = "https://github.com/paritytech/litep2p", rev = "e03a6023882db111beeb24d8c0ceaac0721d3f0f" }
+litep2p = "0.4.0"
 multiaddr = "0.17.0"
 multihash = { version = "0.17.0", default-features = false, features = ["identity", "multihash-impl", "sha2", "std"] }
 rand = "0.8.5"
-- 
GitLab