Skip to content

Commit

Permalink
backport: Update litep2p network backend to version 0.8.1 for stable2…
Browse files Browse the repository at this point in the history
…412 (#6527)

This PR updates the litep2p version on stable2412.
The litep2p requires a user opt-in / non-default backend, and changes
should not affect testing / stable libp2p versions.

For more details see PR:
- #6484

---------

Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv authored Nov 19, 2024
1 parent 824ccc9 commit 61fc2d1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ linked-hash-map = { version = "0.5.4" }
linked_hash_set = { version = "0.1.4" }
linregress = { version = "0.5.1" }
lite-json = { version = "0.2.0", default-features = false }
litep2p = { version = "0.8.0", features = ["websocket"] }
litep2p = { version = "0.8.1", features = ["websocket"] }
log = { version = "0.4.22", default-features = false }
macro_magic = { version = "0.5.1" }
maplit = { version = "1.0.2" }
Expand Down
10 changes: 10 additions & 0 deletions prdoc/pr_6527.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Update litep2p network backend to version 0.8.1

doc:
- audience: [ Node Dev, Node Operator ]
description: |
Release 0.8.1 of litep2p includes critical fixes to further enhance the stability and performance of the litep2p network backend.

crates:
- name: sc-network
bump: patch
8 changes: 7 additions & 1 deletion substrate/client/network/src/litep2p/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,13 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkBackend<B, H> for Litep2pNetworkBac
metrics.pending_connections_errors_total.with_label_values(&["transport-errors"]).inc();
}
}
_ => {}
None => {
log::error!(
target: LOG_TARGET,
"Litep2p backend terminated"
);
return
}
},
}
}
Expand Down

0 comments on commit 61fc2d1

Please sign in to comment.