diff --git a/Cargo.lock b/Cargo.lock index 6af6a627cd..9726b7490c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5187,7 +5187,7 @@ dependencies = [ [[package]] name = "libp2p" version = "0.52.3" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "bytes", "futures", @@ -5232,7 +5232,7 @@ dependencies = [ [[package]] name = "libp2p-allow-block-list" version = "0.2.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "libp2p-core 0.40.0", "libp2p-identity 0.2.3", @@ -5243,7 +5243,7 @@ dependencies = [ [[package]] name = "libp2p-autonat" version = "0.11.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "async-trait", "futures", @@ -5273,7 +5273,7 @@ dependencies = [ [[package]] name = "libp2p-connection-limits" version = "0.2.1" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "libp2p-core 0.40.0", "libp2p-identity 0.2.3", @@ -5312,7 +5312,7 @@ dependencies = [ [[package]] name = "libp2p-core" version = "0.40.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "either", "fnv", @@ -5354,7 +5354,7 @@ dependencies = [ [[package]] name = "libp2p-dns" version = "0.40.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "futures", "libp2p-core 0.40.0", @@ -5368,7 +5368,7 @@ dependencies = [ [[package]] name = "libp2p-gossipsub" version = "0.45.1" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "asynchronous-codec", "base64 0.21.4", @@ -5422,7 +5422,7 @@ dependencies = [ [[package]] name = "libp2p-identify" version = "0.43.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "asynchronous-codec", "either", @@ -5507,7 +5507,7 @@ dependencies = [ [[package]] name = "libp2p-kad" version = "0.44.4" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "arrayvec 0.7.4", "asynchronous-codec", @@ -5556,7 +5556,7 @@ dependencies = [ [[package]] name = "libp2p-mdns" version = "0.44.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "data-encoding", "futures", @@ -5590,7 +5590,7 @@ dependencies = [ [[package]] name = "libp2p-metrics" version = "0.13.1" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "instant", "libp2p-core 0.40.0", @@ -5630,7 +5630,7 @@ dependencies = [ [[package]] name = "libp2p-noise" version = "0.43.1" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "bytes", "curve25519-dalek 4.1.0", @@ -5671,7 +5671,7 @@ dependencies = [ [[package]] name = "libp2p-ping" version = "0.43.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "either", "futures", @@ -5688,7 +5688,7 @@ dependencies = [ [[package]] name = "libp2p-plaintext" version = "0.40.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "asynchronous-codec", "bytes", @@ -5725,7 +5725,7 @@ dependencies = [ [[package]] name = "libp2p-quic" version = "0.9.3" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "bytes", "futures", @@ -5763,7 +5763,7 @@ dependencies = [ [[package]] name = "libp2p-request-response" version = "0.25.1" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "async-trait", "futures", @@ -5801,7 +5801,7 @@ dependencies = [ [[package]] name = "libp2p-swarm" version = "0.43.3" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "either", "fnv", @@ -5834,7 +5834,7 @@ dependencies = [ [[package]] name = "libp2p-swarm-derive" version = "0.33.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "heck", "proc-macro-warning", @@ -5846,7 +5846,7 @@ dependencies = [ [[package]] name = "libp2p-swarm-test" version = "0.2.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "async-trait", "futures", @@ -5880,7 +5880,7 @@ dependencies = [ [[package]] name = "libp2p-tcp" version = "0.40.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "async-io", "futures", @@ -5916,7 +5916,7 @@ dependencies = [ [[package]] name = "libp2p-tls" version = "0.2.1" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "futures", "futures-rustls 0.24.0", @@ -6011,7 +6011,7 @@ dependencies = [ [[package]] name = "libp2p-yamux" version = "0.44.1" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "futures", "libp2p-core 0.40.0", @@ -6593,7 +6593,7 @@ dependencies = [ [[package]] name = "multistream-select" version = "0.13.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "bytes", "futures", @@ -8128,7 +8128,7 @@ dependencies = [ [[package]] name = "quick-protobuf-codec" version = "0.2.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "asynchronous-codec", "bytes", @@ -8820,7 +8820,7 @@ dependencies = [ [[package]] name = "rw-stream-sink" version = "0.4.0" -source = "git+https://github.com/shamil-gadelshin/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" +source = "git+https://github.com/subspace/rust-libp2p?rev=7a9328fc0a5f9e28575192d5f4f8663fde6752af#7a9328fc0a5f9e28575192d5f4f8663fde6752af" dependencies = [ "futures", "pin-project", diff --git a/crates/subspace-networking/Cargo.toml b/crates/subspace-networking/Cargo.toml index 64141fdc6f..21fdcda8ab 100644 --- a/crates/subspace-networking/Cargo.toml +++ b/crates/subspace-networking/Cargo.toml @@ -49,7 +49,8 @@ unsigned-varint = { version = "0.7.1", features = ["futures", "asynchronous_code void = "1.0.2" [dependencies.libp2p] -version = "0.52.3" +git = "https://github.com/subspace/rust-libp2p" +rev = "7a9328fc0a5f9e28575192d5f4f8663fde6752af" default-features = false features = [ "autonat", @@ -72,4 +73,4 @@ features = [ [dev-dependencies] rand = "0.8.5" -libp2p-swarm-test = { git = "https://github.com/shamil-gadelshin/rust-libp2p", rev = "7a9328fc0a5f9e28575192d5f4f8663fde6752af" } +libp2p-swarm-test = { git = "https://github.com/subspace/rust-libp2p", rev = "7a9328fc0a5f9e28575192d5f4f8663fde6752af" } diff --git a/crates/subspace-networking/src/constructor/transport.rs b/crates/subspace-networking/src/constructor/transport.rs index d6a4c33f2c..25f2579389 100644 --- a/crates/subspace-networking/src/constructor/transport.rs +++ b/crates/subspace-networking/src/constructor/transport.rs @@ -50,7 +50,12 @@ pub(super) fn build_transport( .boxed() }; - let quic = QuicTransport::new(QuicConfig::new(keypair)) + #[cfg(not(windows))] + let quic_config = QuicConfig::new(keypair); + #[cfg(windows)] + let quic_config = QuicConfig::new(keypair).path_mtu_discovery_config(None); + + let quic = QuicTransport::new(quic_config) .map(|(peer_id, muxer), _| (peer_id, StreamMuxerBox::new(muxer))); let wrapped_quic =