Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 7ce6969

Browse files
siladugaryschulte
authored andcommitted
Pull in Consensys/tuweni v2.7.0 (#8330)
This replaces io.tmio/tuweni with the Consensys fork. Also Includes: - reduce check argument args allocations - Consensys/tuweni#10 which should reduce Integer and int[] and therefore gc pressure Signed-off-by: Simon Dudley <[email protected]>
1 parent bded8d3 commit 7ce6969

File tree

37 files changed

+273
-97
lines changed

37 files changed

+273
-97
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
- Support pending transaction score when saving and restoring txpool [#8363](https://github.com/hyperledger/besu/pull/8363)
4646
- Upgrade to execution-spec-tests v4.1.0 including better EIP-2537 coverage for BLS [#8402](https://github.com/hyperledger/besu/pull/8402)
4747
- Add era1 format to blocks import subcommand [#7935](https://github.com/hyperledger/besu/issues/7935)
48+
- Replace tuweni libs with https://github.com/Consensys/tuweni
49+
- Performance: Consensys/tuweni 2.6.0 reduces boxing/unboxing overhead on some EVM opcodes, like PushX and Caller
50+
4851

4952
### Bug fixes
5053
- Add missing RPC method `debug_accountRange` to `RpcMethod.java` so this method can be used with `--rpc-http-api-method-no-auth` [#8153](https://github.com/hyperledger/besu/issues/8153)

acceptance-tests/dsl/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ dependencies {
3232
implementation 'io.reactivex.rxjava2:rxjava'
3333
implementation 'io.vertx:vertx-core'
3434
implementation 'io.opentelemetry:opentelemetry-api'
35-
implementation 'io.tmio:tuweni-bytes'
36-
implementation 'io.tmio:tuweni-io'
37-
implementation 'io.tmio:tuweni-units'
35+
implementation 'io.consensys.protocols:tuweni-bytes'
36+
implementation 'io.consensys.protocols:tuweni-io'
37+
implementation 'io.consensys.protocols:tuweni-units'
3838
implementation 'org.assertj:assertj-core'
3939
implementation 'org.awaitility:awaitility'
4040
implementation 'org.java-websocket:Java-WebSocket'

acceptance-tests/tests/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencies {
7373
testImplementation 'io.vertx:vertx-core'
7474
testImplementation 'org.apache.commons:commons-compress'
7575
testImplementation 'org.apache.logging.log4j:log4j-core'
76-
testImplementation 'io.tmio:tuweni-crypto'
76+
testImplementation 'io.consensys.protocols:tuweni-crypto'
7777
testImplementation 'org.assertj:assertj-core'
7878
testImplementation 'org.awaitility:awaitility'
7979
testImplementation 'org.junit.jupiter:junit-jupiter'

besu/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ dependencies {
7272
implementation 'info.picocli:picocli'
7373
implementation 'io.vertx:vertx-core'
7474
implementation 'io.vertx:vertx-web'
75-
implementation 'io.tmio:tuweni-bytes'
76-
implementation 'io.tmio:tuweni-config'
77-
implementation 'io.tmio:tuweni-toml'
78-
implementation 'io.tmio:tuweni-units'
75+
implementation 'io.consensys.protocols:tuweni-bytes'
76+
implementation 'io.consensys.protocols:tuweni-config'
77+
implementation 'io.consensys.protocols:tuweni-toml'
78+
implementation 'io.consensys.protocols:tuweni-units'
7979
implementation 'org.apache.commons:commons-lang3'
8080
implementation 'org.apache.logging.log4j:log4j-core'
8181
implementation 'org.hibernate.validator:hibernate-validator'
@@ -98,8 +98,8 @@ dependencies {
9898
testImplementation 'io.opentelemetry:opentelemetry-api'
9999
testImplementation 'org.mockito:mockito-junit-jupiter'
100100
testImplementation 'org.apache.commons:commons-text'
101-
testImplementation 'io.tmio:tuweni-bytes'
102-
testImplementation 'io.tmio:tuweni-units'
101+
testImplementation 'io.consensys.protocols:tuweni-bytes'
102+
testImplementation 'io.consensys.protocols:tuweni-units'
103103
testImplementation 'org.assertj:assertj-core'
104104
testImplementation 'org.awaitility:awaitility'
105105
testImplementation 'org.junit.jupiter:junit-jupiter'

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ configure(allprojects - project(':platform')) {
203203
resolutionStrategy.capabilitiesResolution.withCapability('org.bouncycastle:bcpkix-jdk18on') {
204204
selectHighestVersion()
205205
}
206+
207+
// transitive versions conflict with io.protocols.tuweni, prefer ours
208+
exclude group: 'io.tmio', module: 'tuweni-bytes'
209+
exclude group: 'io.tmio', module: 'tuweni-crypto'
210+
exclude group: 'io.tmio', module: 'tuweni-rlp'
211+
exclude group: 'io.tmio', module: 'tuweni-units'
206212
}
207213

208214

config/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ dependencies {
3838
implementation 'com.google.guava:guava'
3939
implementation 'com.google.dagger:dagger'
4040
implementation 'info.picocli:picocli'
41-
implementation 'io.tmio:tuweni-bytes'
42-
implementation 'io.tmio:tuweni-units'
41+
implementation 'io.consensys.protocols:tuweni-bytes'
42+
implementation 'io.consensys.protocols:tuweni-units'
4343
implementation "org.immutables:value-annotations"
4444
annotationProcessor "org.immutables:value"
4545
annotationProcessor 'com.google.dagger:dagger-compiler'

consensus/clique/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ dependencies {
4848
implementation 'com.google.guava:guava'
4949
implementation 'io.vertx:vertx-core'
5050
implementation 'com.fasterxml.jackson.core:jackson-databind'
51-
implementation 'io.tmio:tuweni-bytes'
52-
implementation 'io.tmio:tuweni-units'
51+
implementation 'io.consensys.protocols:tuweni-bytes'
52+
implementation 'io.consensys.protocols:tuweni-units'
5353

5454
testImplementation project(path: ':consensus:common', configuration: 'testArtifacts')
5555
testImplementation project(path: ':crypto:services', configuration: 'testSupportArtifacts')

consensus/common/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies {
4545

4646
implementation 'com.fasterxml.jackson.core:jackson-databind'
4747
implementation 'com.google.guava:guava'
48-
implementation 'io.tmio:tuweni-bytes'
48+
implementation 'io.consensys.protocols:tuweni-bytes'
4949

5050
testImplementation project(':config')
5151
testImplementation project(':crypto:algorithms')

consensus/ibft/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ dependencies {
4545
implementation 'com.google.guava:guava'
4646
implementation 'io.vertx:vertx-core'
4747
implementation 'com.fasterxml.jackson.core:jackson-databind'
48-
implementation 'io.tmio:tuweni-bytes'
49-
implementation 'io.tmio:tuweni-units'
48+
implementation 'io.consensys.protocols:tuweni-bytes'
49+
implementation 'io.consensys.protocols:tuweni-units'
5050

5151
integrationTestImplementation project(path: ':config', configuration: 'testSupportArtifacts')
5252
integrationTestImplementation project(path: ':ethereum:core', configuration: 'testSupportArtifacts')

consensus/merge/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ dependencies {
4747
implementation 'com.fasterxml.jackson.core:jackson-databind'
4848
implementation 'com.google.guava:guava'
4949
implementation 'io.vertx:vertx-core'
50-
implementation 'io.tmio:tuweni-bytes'
51-
implementation 'io.tmio:tuweni-units'
50+
implementation 'io.consensys.protocols:tuweni-bytes'
51+
implementation 'io.consensys.protocols:tuweni-units'
5252

5353
testImplementation project(path: ':consensus:common', configuration: 'testArtifacts')
5454
testImplementation project(':crypto:algorithms')

0 commit comments

Comments
 (0)