Skip to content

Commit

Permalink
update jvm-libp2p to 1.0.1-RELEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Sep 20, 2023
1 parent b63bd5e commit b927846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Arbitrary change to refresh cache number: 3
dependencyManagement {
dependencies {
dependency 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
Expand Down Expand Up @@ -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'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit b927846

Please sign in to comment.