diff --git a/CHANGELOG.md b/CHANGELOG.md index 913d5eecda..4e92853677 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 *When editing this file, please respect a line length of 100.* +## 2024-09-12 + +### Network + +#### Changed + +- The circuit-bytes limit is increased. This enables `libp2p-relay` to forward large records, such + as `ChunkWithPayment`, enabling home nodes to be notified that they have been paid. + ## 2024-09-09 ### Network diff --git a/Cargo.lock b/Cargo.lock index 0c14a20074..6aaec9774e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -213,9 +213,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.87" +version = "1.0.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10f00e1f6e58a40e807377c75c6a7f97bf9044fab57816f2414e6f5f4499d7b8" +checksum = "4e1496f8fb1fbf272686b8d37f523dab3e4a7443300055e74cdaa449f3114356" [[package]] name = "arc-swap" @@ -1940,11 +1940,11 @@ dependencies = [ [[package]] name = "enum-as-inner" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ffccbb6966c05b32ef8fbac435df276c4ae4d3dc55a8cd0eb9745e6c12f546a" +checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc" dependencies = [ - "heck 0.4.1", + "heck 0.5.0", "proc-macro2", "quote", "syn 2.0.77", @@ -2288,7 +2288,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f2f12607f92c69b12ed746fabf9ca4f5c482cba46679c1a75b874ed7c26adb" dependencies = [ "futures-io", - "rustls 0.23.12", + "rustls 0.23.13", "rustls-pki-types", ] @@ -2917,9 +2917,9 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.14" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57da3b9b5b85bd66f31093f8c408b90a74431672542466497dcbdfdc02034be1" +checksum = "15f1ce686646e7f1e19bf7d5533fe443a45dbfb990e00629110797578b42fb19" dependencies = [ "aho-corasick", "bstr", @@ -3064,12 +3064,6 @@ dependencies = [ "unicode-segmentation", ] -[[package]] -name = "heck" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" - [[package]] name = "heck" version = "0.5.0" @@ -3375,7 +3369,7 @@ dependencies = [ "http 1.1.0", "hyper 1.4.1", "hyper-util", - "rustls 0.23.12", + "rustls 0.23.13", "rustls-pki-types", "tokio", "tokio-rustls 0.26.0", @@ -3397,9 +3391,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cde7055719c54e36e95e8719f95883f22072a48ede39db7fc17a4e1d5281e9b9" +checksum = "da62f120a8a37763efb0cf8fdf264b884c7b8b9ac8660b900c8661030c00e6ba" dependencies = [ "bytes", "futures-channel", @@ -3514,9 +3508,9 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.22" +version = "0.4.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1" +checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b" dependencies = [ "crossbeam-deque", "globset", @@ -4065,7 +4059,7 @@ dependencies = [ "quinn", "rand 0.8.5", "ring 0.17.8", - "rustls 0.23.12", + "rustls 0.23.13", "socket2", "thiserror", "tokio", @@ -4186,7 +4180,7 @@ dependencies = [ "libp2p-identity", "rcgen", "ring 0.17.8", - "rustls 0.23.12", + "rustls 0.23.13", "rustls-webpki 0.101.7", "thiserror", "x509-parser", @@ -4576,7 +4570,7 @@ dependencies = [ [[package]] name = "nat-detection" -version = "0.2.3" +version = "0.2.4" dependencies = [ "clap", "clap-verbosity-flag", @@ -5743,7 +5737,7 @@ dependencies = [ "quinn-proto", "quinn-udp", "rustc-hash", - "rustls 0.23.12", + "rustls 0.23.13", "socket2", "thiserror", "tokio", @@ -5760,7 +5754,7 @@ dependencies = [ "rand 0.8.5", "ring 0.17.8", "rustc-hash", - "rustls 0.23.12", + "rustls 0.23.13", "slab", "thiserror", "tinyvec", @@ -6067,9 +6061,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" +checksum = "0884ad60e090bf1345b93da0a5de8923c93884cd03f40dfcfddd3b4bee661853" dependencies = [ "bitflags 2.6.0", ] @@ -6194,7 +6188,7 @@ dependencies = [ "percent-encoding", "pin-project-lite", "quinn", - "rustls 0.23.12", + "rustls 0.23.13", "rustls-pemfile 2.1.3", "rustls-pki-types", "serde", @@ -6384,9 +6378,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.36" +version = "0.38.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f55e80d50763938498dd5ebb18647174e0c76dc38c5505294bb224624f30f36" +checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811" dependencies = [ "bitflags 2.6.0", "errno", @@ -6434,14 +6428,14 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.12" +version = "0.23.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c58f8c84392efc0a126acce10fa59ff7b3d2ac06ab451a33f2741989b806b044" +checksum = "f2dabaac7466917e566adb06783a81ca48944c6898a1b08b9374106dd671f4c8" dependencies = [ "once_cell", "ring 0.17.8", "rustls-pki-types", - "rustls-webpki 0.102.7", + "rustls-webpki 0.102.8", "subtle", "zeroize", ] @@ -6492,9 +6486,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.102.7" +version = "0.102.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84678086bd54edf2b415183ed7a94d0efb049f1b646a33e22a36f3794be6ae56" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" dependencies = [ "ring 0.17.8", "rustls-pki-types", @@ -7240,7 +7234,7 @@ dependencies = [ [[package]] name = "sn_networking" -version = "0.18.0" +version = "0.18.1" dependencies = [ "aes-gcm-siv", "async-trait", @@ -7283,7 +7277,7 @@ dependencies = [ [[package]] name = "sn_node" -version = "0.111.0" +version = "0.111.1" dependencies = [ "assert_fs", "assert_matches", @@ -8003,7 +7997,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ - "rustls 0.23.12", + "rustls 0.23.13", "rustls-pki-types", "tokio", ] @@ -8450,9 +8444,9 @@ checksum = "7eec5d1121208364f6793f7d2e222bf75a915c19557537745b195b253dd64217" [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" [[package]] name = "unicode-normalization" @@ -9195,9 +9189,9 @@ dependencies = [ [[package]] name = "xml-rs" -version = "0.8.21" +version = "0.8.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "539a77ee7c0de333dcc6da69b177380a0b81e0dacfa4f7344c465a36871ee601" +checksum = "af4e2e2f7cba5a093896c1e150fbfe177d1883e7448200efb81d40b9d339ef26" [[package]] name = "xmltree" diff --git a/nat-detection/Cargo.toml b/nat-detection/Cargo.toml index f212b4ebd2..499a6ed519 100644 --- a/nat-detection/Cargo.toml +++ b/nat-detection/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0" name = "nat-detection" readme = "README.md" repository = "https://github.com/maidsafe/safe_network" -version = "0.2.3" +version = "0.2.4" [[bin]] name = "nat-detection" @@ -28,7 +28,7 @@ libp2p = { version = "0.53", features = [ "macros", "upnp", ] } -sn_networking = { path = "../sn_networking", version = "0.18.0" } +sn_networking = { path = "../sn_networking", version = "0.18.1" } tokio = { version = "1.32.0", features = ["full"] } tracing = { version = "~0.1.26" } tracing-log = "0.2.0" diff --git a/release-cycle-info b/release-cycle-info index ef49747437..f7818e462d 100644 --- a/release-cycle-info +++ b/release-cycle-info @@ -15,4 +15,4 @@ release-year: 2024 release-month: 09 release-cycle: 1 -release-cycle-counter: 3 +release-cycle-counter: 4 diff --git a/sn_client/Cargo.toml b/sn_client/Cargo.toml index c6209ea077..ac6b70fbd5 100644 --- a/sn_client/Cargo.toml +++ b/sn_client/Cargo.toml @@ -49,7 +49,7 @@ rayon = "1.8.0" rmp-serde = "1.1.1" self_encryption = "~0.29.0" serde = { version = "1.0.133", features = ["derive", "rc"] } -sn_networking = { path = "../sn_networking", version = "0.18.0" } +sn_networking = { path = "../sn_networking", version = "0.18.1" } sn_protocol = { path = "../sn_protocol", version = "0.17.8" } sn_registers = { path = "../sn_registers", version = "0.3.18" } sn_transfers = { path = "../sn_transfers", version = "0.19.0" } diff --git a/sn_networking/Cargo.toml b/sn_networking/Cargo.toml index 2641c78c5c..8c9a015085 100644 --- a/sn_networking/Cargo.toml +++ b/sn_networking/Cargo.toml @@ -8,7 +8,7 @@ license = "GPL-3.0" name = "sn_networking" readme = "README.md" repository = "https://github.com/maidsafe/safe_network" -version = "0.18.0" +version = "0.18.1" [features] default = [] diff --git a/sn_networking/src/driver.rs b/sn_networking/src/driver.rs index b0fc96753d..2ec12267d6 100644 --- a/sn_networking/src/driver.rs +++ b/sn_networking/src/driver.rs @@ -599,6 +599,8 @@ impl NetworkBuilder { max_circuits: 1024, // The total amount of relayed connections at any given moment. max_circuits_per_peer: 256, // Amount of relayed connections per peer (both dst and src) circuit_src_rate_limiters: vec![], // No extra rate limiting for now + // We should at least be able to relay packets with chunks etc. + max_circuit_bytes: MAX_PACKET_SIZE as u64, ..Default::default() }; libp2p::relay::Behaviour::new(peer_id, relay_server_cfg) diff --git a/sn_node/Cargo.toml b/sn_node/Cargo.toml index c598fbad39..4314a23a7f 100644 --- a/sn_node/Cargo.toml +++ b/sn_node/Cargo.toml @@ -2,7 +2,7 @@ authors = ["MaidSafe Developers "] description = "Safe Node" name = "sn_node" -version = "0.111.0" +version = "0.111.1" edition = "2021" license = "GPL-3.0" homepage = "https://maidsafe.net" @@ -53,7 +53,7 @@ serde = { version = "1.0.133", features = ["derive", "rc"] } sn_build_info = { path = "../sn_build_info", version = "0.1.12" } sn_peers_acquisition = { path = "../sn_peers_acquisition", version = "0.5.0" } sn_logging = { path = "../sn_logging", version = "0.2.33" } -sn_networking = { path = "../sn_networking", version = "0.18.0" } +sn_networking = { path = "../sn_networking", version = "0.18.1" } sn_protocol = { path = "../sn_protocol", version = "0.17.8" } sn_registers = { path = "../sn_registers", version = "0.3.18" } sn_transfers = { path = "../sn_transfers", version = "0.19.0" } diff --git a/sn_node_rpc_client/Cargo.toml b/sn_node_rpc_client/Cargo.toml index 3e6bc323fa..d53c9583ca 100644 --- a/sn_node_rpc_client/Cargo.toml +++ b/sn_node_rpc_client/Cargo.toml @@ -25,7 +25,7 @@ libp2p = { version="0.53", features = ["kad"]} libp2p-identity = { version="0.2.7", features = ["rand"] } sn_client = { path = "../sn_client", version = "0.110.0" } sn_logging = { path = "../sn_logging", version = "0.2.33" } -sn_node = { path = "../sn_node", version = "0.111.0" } +sn_node = { path = "../sn_node", version = "0.111.1" } sn_peers_acquisition = { path = "../sn_peers_acquisition", version = "0.5.0" } sn_protocol = { path = "../sn_protocol", version = "0.17.8", features=["rpc"] } sn_service_management = { path = "../sn_service_management", version = "0.3.11" }