From 8fba1646373adfaf8474976b3303cefcb5c8393a Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Wed, 19 Feb 2025 15:57:20 +0800 Subject: [PATCH] tentacle: Upgrade multiaddr and secio, do not update last connected ms for Onion3 multiaddr --- Cargo.lock | 17 +++++++++++++---- network/src/peer_store/peer_store_impl.rs | 6 +++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 93a64d322a..b952941a92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -155,6 +155,12 @@ version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457" +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + [[package]] name = "arrayvec" version = "0.7.6" @@ -6126,12 +6132,15 @@ dependencies = [ [[package]] name = "tentacle-multiaddr" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9e71b28bf0bbf274b92f47cb2c5b42755d84a11e2246cf7bcb7b65c89483b9" +checksum = "35d1c1fa03d7fbdde1314f89e740cf5dbb5484ccc2b13fff9b82d4ddd0d51cef" dependencies = [ + "arrayref", "bs58", + "byteorder", "bytes", + "data-encoding", "serde", "sha2", "unsigned-varint", @@ -6139,9 +6148,9 @@ dependencies = [ [[package]] name = "tentacle-secio" -version = "0.6.4" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53d53673d63399e1d557c2e884b045d242811079d3b2f17a569310e5c3f1db33" +checksum = "01d1c8be16ed68e4d69b60e445d453c392d07e613fe9fab0688d46910f6dd013" dependencies = [ "bs58", "bytes", diff --git a/network/src/peer_store/peer_store_impl.rs b/network/src/peer_store/peer_store_impl.rs index 3fd4a594a6..5daefc0f5c 100644 --- a/network/src/peer_store/peer_store_impl.rs +++ b/network/src/peer_store/peer_store_impl.rs @@ -116,7 +116,11 @@ impl PeerStore { .filter_map(|p| { if matches!( p, - Protocol::Ws | Protocol::Wss | Protocol::Memory(_) | Protocol::Tls(_) + Protocol::Ws + | Protocol::Wss + | Protocol::Memory(_) + | Protocol::Tls(_) + | Protocol::Onion3(_) ) { None } else {