mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 15:37:54 -05:00
Upgrade to Apache Tuweni 2.0 (#2376)
* Upgrade to Apache Tuweni 2.0 Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * Remove intermediate repository Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * Remove all occurrences of toBytes Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * Migrate to tuweni-bytes Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * add changelog Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * correct reference tests Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * Initial API changes Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * more changes Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * Change APIs for VM ops Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * Use constant UInt256.ONE Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * Optimize a bit address <> word transformation Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com> * spotless Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
This commit is contained in:
@@ -5,7 +5,7 @@ dependencies {
|
||||
implementation 'com.fasterxml.jackson.core:jackson-databind'
|
||||
implementation 'com.google.guava:guava'
|
||||
implementation 'io.vertx:vertx-core'
|
||||
implementation 'org.apache.tuweni:net'
|
||||
implementation 'org.apache.tuweni:tuweni-net'
|
||||
implementation 'org.apache.logging.log4j:log4j-api'
|
||||
|
||||
runtimeOnly('org.bouncycastle:bcpkix-jdk15on')
|
||||
|
||||
@@ -70,7 +70,7 @@ class TlsEnabledHttpServerFactory {
|
||||
web3HttpServerOptions.setSsl(true);
|
||||
web3HttpServerOptions.setClientAuth(ClientAuth.REQUIRED);
|
||||
web3HttpServerOptions.setTrustOptions(
|
||||
VertxTrustOptions.whitelistClients(serverFingerprintFile));
|
||||
VertxTrustOptions.allowlistClients(serverFingerprintFile));
|
||||
web3HttpServerOptions.setPfxKeyCertOptions(
|
||||
new PfxOptions()
|
||||
.setPath(serverCert.getPkcs12File().toString())
|
||||
|
||||
@@ -116,7 +116,7 @@ public class EnclaveFactory {
|
||||
convertFrom(privacyKeyStoreFile, privacyKeyStorePasswordFile));
|
||||
}
|
||||
clientOptions.setTrustOptions(
|
||||
VertxTrustOptions.whitelistServers(privacyAllowlistFile, TRUST_CA));
|
||||
VertxTrustOptions.allowlistServers(privacyAllowlistFile, TRUST_CA));
|
||||
} catch (final NoSuchFileException e) {
|
||||
throw new InvalidConfigurationException(
|
||||
"Requested file " + e.getMessage() + " does not exist at specified location.");
|
||||
|
||||
Reference in New Issue
Block a user