Skip to content

Commit

Permalink
Merge pull request #2661 from jacderida/chore-upgrade_libp2p
Browse files Browse the repository at this point in the history
chore: upgrade libp2p to 0.55.0
  • Loading branch information
jacderida authored Jan 23, 2025
2 parents 490eea2 + 221d380 commit b30c5cf
Show file tree
Hide file tree
Showing 13 changed files with 706 additions and 105 deletions.
779 changes: 688 additions & 91 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ant-bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4.2.1", features = ["derive", "env"] }
dirs-next = "~2.0.0"
futures = "0.3.30"
libp2p = { version = "0.54.1", features = ["serde"] }
libp2p = { version = "0.55.0", features = ["serde"] }
reqwest = { version = "0.12.2", default-features = false, features = [
"rustls-tls-manual-roots",
] }
Expand Down
2 changes: 1 addition & 1 deletion ant-evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ custom_debug = "~0.6.1"
evmlib = { path = "../evmlib", version = "0.1.8" }
hex = "~0.4.3"
lazy_static = "~1.4.0"
libp2p = { version = "0.54.1", features = ["identify", "kad"] }
libp2p = { version = "0.55.0", features = ["identify", "kad"] }
rand = { version = "~0.8.5", features = ["small_rng"] }
ring = "0.17.8"
rmp-serde = "1.1.1"
Expand Down
4 changes: 2 additions & 2 deletions ant-networking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ hyper = { version = "0.14", features = [
], optional = true }
itertools = "~0.12.1"
lazy_static = "~1.4.0"
libp2p = { version = "0.54.1", features = [
libp2p = { version = "0.55.0", features = [
"tokio",
"dns",
"kad",
Expand Down Expand Up @@ -95,7 +95,7 @@ crate-type = ["cdylib", "rlib"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2.12", features = ["js"] }
libp2p = { version = "0.54.1", features = [
libp2p = { version = "0.55.0", features = [
"tokio",
"dns",
"kad",
Expand Down
8 changes: 6 additions & 2 deletions ant-networking/src/event/request_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl SwarmDriver {
event: request_response::Event<Request, Response>,
) -> Result<(), NetworkError> {
match event {
request_response::Event::Message { message, peer } => match message {
request_response::Event::Message { message, peer, .. } => match message {
Message::Request {
request,
channel,
Expand Down Expand Up @@ -124,6 +124,7 @@ impl SwarmDriver {
request_id,
error,
peer,
..
} => {
if let Some(sender) = self.pending_requests.remove(&request_id) {
match sender {
Expand All @@ -146,10 +147,13 @@ impl SwarmDriver {
peer,
request_id,
error,
..
} => {
warn!("RequestResponse: InboundFailure for request_id: {request_id:?} and peer: {peer:?}, with error: {error:?}");
}
request_response::Event::ResponseSent { peer, request_id } => {
request_response::Event::ResponseSent {
peer, request_id, ..
} => {
debug!("ResponseSent for request_id: {request_id:?} and peer: {peer:?}");
}
}
Expand Down
2 changes: 1 addition & 1 deletion ant-node-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ colored = "2.0.4"
color-eyre = "~0.6"
dirs-next = "2.0.0"
indicatif = { version = "0.17.5", features = ["tokio"] }
libp2p = { version = "0.54.1", features = [] }
libp2p = { version = "0.55.0", features = [] }
libp2p-identity = { version = "0.2.7", features = ["rand"] }
prost = { version = "0.9" }
rand = "0.8.5"
Expand Down
2 changes: 1 addition & 1 deletion ant-node-rpc-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bls = { package = "blsttc", version = "8.0.1" }
clap = { version = "4.2.1", features = ["derive"] }
color-eyre = "0.6.2"
hex = "~0.4.3"
libp2p = { version = "0.54.1", features = ["kad"]}
libp2p = { version = "0.55.0", features = ["kad"]}
libp2p-identity = { version="0.2.7", features = ["rand"] }
thiserror = "1.0.23"
# # watch out updating this, protoc compiler needs to be installed on all build systems
Expand Down
2 changes: 1 addition & 1 deletion ant-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ file-rotate = "0.7.3"
futures = "~0.3.13"
hex = "~0.4.3"
itertools = "~0.12.1"
libp2p = { version = "0.54.1", features = ["tokio", "dns", "kad", "macros"] }
libp2p = { version = "0.55.0", features = ["tokio", "dns", "kad", "macros"] }
num-traits = "0.2"
prometheus-client = { version = "0.22", optional = true }
# watch out updating this, protoc compiler needs to be installed on all build systems
Expand Down
2 changes: 1 addition & 1 deletion ant-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dirs-next = "~2.0.0"
exponential-backoff = "2.0.0"
hex = "~0.4.3"
lazy_static = "1.4.0"
libp2p = { version = "0.54.1", features = ["identify", "kad"] }
libp2p = { version = "0.55.0", features = ["identify", "kad"] }
# # watch out updating this, protoc compiler needs to be installed on all build systems
# # arm builds + musl are very problematic
# prost and tonic are needed for the RPC server messages, not the underlying protocol
Expand Down
2 changes: 1 addition & 1 deletion ant-service-management/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ant-logging = { path = "../ant-logging", version = "0.2.45" }
ant-protocol = { path = "../ant-protocol", version = "0.3.3", features = ["rpc"] }
async-trait = "0.1"
dirs-next = "2.0.0"
libp2p = { version = "0.54.1", features = ["kad"] }
libp2p = { version = "0.55.0", features = ["kad"] }
libp2p-identity = { version = "0.2.7", features = ["rand"] }
prost = { version = "0.9" }
serde = { version = "1.0", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion autonomi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ curv = { version = "0.10.1", package = "sn_curv", default-features = false, feat
eip2333 = { version = "0.2.1", package = "sn_bls_ckd" }
futures = "0.3.30"
hex = "~0.4.3"
libp2p = "0.54.1"
libp2p = "0.55.0"
pyo3 = { version = "0.20", optional = true, features = ["extension-module", "abi3-py38"] }
rand = "0.8.5"
rmp-serde = "1.1.1"
Expand Down
2 changes: 1 addition & 1 deletion nat-detection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ clap = { version = "4.5.4", features = ["derive"] }
clap-verbosity-flag = "2.2.0"
color-eyre = { version = "0.6", default-features = false }
futures = "~0.3.13"
libp2p = { version = "0.54.1", features = [
libp2p = { version = "0.55.0", features = [
"tokio",
"tcp",
"noise",
Expand Down
2 changes: 1 addition & 1 deletion test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bytes = { version = "1.0.1", features = ["serde"] }
color-eyre = "~0.6.2"
dirs-next = "~2.0.0"
evmlib = { path = "../evmlib", version = "0.1.8" }
libp2p = { version = "0.54.1", features = ["identify", "kad"] }
libp2p = { version = "0.55.0", features = ["identify", "kad"] }
rand = "0.8.5"
serde = { version = "1.0.133", features = ["derive"] }
serde_json = "1.0"

0 comments on commit b30c5cf

Please sign in to comment.