From b9278460cdc1a8590cf5c9bf6f462e269aecc91a Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Sat, 16 Sep 2023 16:01:52 +0200 Subject: [PATCH] update jvm-libp2p to 1.0.1-RELEASE --- gradle/versions.gradle | 3 +-- .../teku/networking/p2p/libp2p/LibP2PNetworkBuilder.java | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle/versions.gradle b/gradle/versions.gradle index ee2dc7757c0..df3447dab19 100644 --- a/gradle/versions.gradle +++ b/gradle/versions.gradle @@ -1,4 +1,3 @@ -// Arbitrary change to refresh cache number: 3 dependencyManagement { dependencies { dependency 'com.fasterxml.jackson.core:jackson-databind:2.15.2' @@ -33,7 +32,7 @@ dependencyManagement { entry 'javalin-rendering' } - dependency 'io.libp2p:jvm-libp2p:develop' + dependency 'io.libp2p:jvm-libp2p:1.0.1-RELEASE' dependency 'tech.pegasys:jblst:0.3.11' dependency 'tech.pegasys:jc-kzg-4844:0.7.2' diff --git a/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/libp2p/LibP2PNetworkBuilder.java b/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/libp2p/LibP2PNetworkBuilder.java index fd20a7c8dd6..fbc86d15186 100644 --- a/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/libp2p/LibP2PNetworkBuilder.java +++ b/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/libp2p/LibP2PNetworkBuilder.java @@ -159,8 +159,9 @@ protected Host createHost() { // yamux MUST take precedence during negotiation if (config.isYamuxEnabled()) { - // as a temporary workaround setting maxBufferedConnectionWrites to 150 MiB to handle - // overflowing the write buffer when serving the blocks by range requests + // TODO: setting maxBufferedConnectionWrites to 150 MiB to handle overflowing the write + // buffer when serving the blocks by range request until jvm-libp2p implements more + // optimized yamux backpressure final int maxBufferedConnectionWrites = 150 * 1024 * 1024; b.getMuxers().add(StreamMuxerProtocol.getYamux(maxBufferedConnectionWrites)); }