29 Commits

Author SHA1 Message Date
Fabio Di Fabio
8b5b40d21e Merge branch 'main' into zkbesu
# Conflicts:
#	.github/workflows/acceptance-tests.yml
#	.github/workflows/codeql.yml
#	.github/workflows/integration-tests.yml
#	.github/workflows/pre-review.yml
#	.github/workflows/reference-tests.yml
#	build.gradle
2025-03-18 11:23:20 +01:00
Simon Dudley
789542f76d Pull in Consensys/tuweni v2.7.0 (#8330)
This replaces io.tmio/tuweni with the Consensys fork.

Also Includes:
- reduce check argument args allocations - https://github.com/Consensys/tuweni/pull/10
which should reduce Integer and int[] and therefore gc pressure

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-03-17 19:42:25 +10:00
Vaidik
65baa304d4 Update to new version of jc-kzg-4844 lib (#7849)
* Updating Dependencies
Signed-off-by: vaidikcode <vaidikbhardwaj00@gmail.com>

* Update CHANGELOG.md
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

---------

Signed-off-by: Vaidik <vaidikbhardwaj00@gmail.com>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-02-19 17:00:37 +00:00
Fabio Di Fabio
6e255ceb6c Merge branch 'main' into zkbesu
# Conflicts:
#	build.gradle
#	gradle/verification-metadata.xml
2024-12-13 12:23:25 +01:00
garyschulte
c8ad1d12a0 Bump besu-native dep to 1.0.0 (#8019)
* remove evm dep on matter-labs bls12 lib

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-12-11 14:04:18 -08:00
Fabio Di Fabio
af80dfbd86 Merge branch 'main' into zkbesu
# Conflicts:
#	crypto/algorithms/build.gradle
#	crypto/services/build.gradle
#	datatypes/build.gradle
#	ethereum/rlp/build.gradle
#	evm/build.gradle
#	plugin-api/build.gradle
#	util/build.gradle
2024-09-02 12:25:58 +02:00
Matilda-Clerke
da98fa5541 Reintroduce engine get client version v1 with commit in manifest (#7548)
* Include Commit-Hash in manifests
* Add commit method in BesuInfo
* Use 8 character hash in EngineGetClientVersionV1 and revert calculateVersion back to original spec

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
Co-authored-by: garyschulte <garyschulte@gmail.com>
2024-08-30 18:13:53 +00:00
Fabio Di Fabio
b19ae8cd26 Merge branch 'main' into zkbesu
# Conflicts:
#	.github/workflows/release.yml
#	besu/src/main/java/org/hyperledger/besu/controller/BesuController.java
#	ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/EthEstimateGas.java
#	ethereum/evmtool/build.gradle
#	evm/src/main/java/org/hyperledger/besu/evm/EvmSpecVersion.java
#	gradle/verification-metadata.xml
#	plugin-api/build.gradle
2024-07-16 17:22:21 +02:00
garyschulte
dfee65665d test template refactor, bump besu-native to 0.9.2 (#7315)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-07-12 10:53:16 -07:00
Fabio Di Fabio
074fd1fe7d Merge branch 'main' into zkbesu
# Conflicts:
#	.github/workflows/reference-tests.yml
#	.github/workflows/splitList.sh
2024-05-07 19:21:44 +02:00
Usman Saleem
b121a5dd6d build - Fix gradle build for Java 21 (#7058)
* build - Fix gradle build for Java 21. Add compileOnly dependencies to allow gradle build to run against Java 21

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-05-07 11:48:03 +10:00
Fabio Di Fabio
1d4b97918c Merge branch 'main' into zkbesu
# Conflicts:
#	.github/workflows/checks.yml
#	.github/workflows/codeql.yml
#	.github/workflows/release.yml
#	.github/workflows/sonarcloud.yml
#	build.gradle
#	gradle.properties
2023-12-21 10:32:57 +01:00
Sally MacFarlane
0c122732c6 removed vintage junit dependency (#6296)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-12-14 11:53:37 +01:00
Fabio Di Fabio
4aa2e475f3 Fix artifacts groupId
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-10-05 10:11:14 +02:00
Fabio Di Fabio
5ff9889efc Rename artifacts group it to linea-besu and remove uneeded stuff
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-10-04 18:27:18 +02:00
Antoine Toulme
901661cb4f Update tuweni2.4.2 (#5684)
* Revert "Revert "Update Tuweni to 2.4.1 (#5513)" (#5585)"

This reverts commit 6111e1bbc3.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* update Tuweni to 2.4.2

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

---------

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
2023-07-11 22:26:32 -07:00
Sally MacFarlane
6111e1bbc3 Revert "Update Tuweni to 2.4.1 (#5513)" (#5585)
This reverts commit b96418143c.

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-06-13 13:12:23 +10:00
Danno Ferrin
2f669cc8fd Migrate EVM module to JUnit 5 (#5575)
Migrate EVM module tests to JUnit 5.
Mostly parameterized test and mokito support changes.

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2023-06-12 14:08:21 +10:00
Antoine Toulme
b96418143c Update Tuweni to 2.4.1 (#5513)
* update to 2.4.1

* update use of DNS daemon with Vertx

* fix issue with Bytes.repeat

* update antlr version

* fix dns tests

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

---------

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-06-09 12:31:20 +10:00
Danno Ferrin
4407abd37f EIP-5656 MCOPY (#5493)
Add the MCOPY operation targeting cancun.
Adding EVM memory to the text fixture so memory ops can be tested better.

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2023-06-08 16:31:20 -06:00
Danno Ferrin
ebbc0df773 Reduce EVM module dependencies (#5285)
Refactor crypto, datatypes, and plugin-api to reduce plugin APIs in the EVM.

Split crypto into crypto services and crypto algorithms
Reverse the dependency between datatyps and plugin-api.
Remove plugin Hash and Address types (use datatypes)
Move PublicKey and Quantity into datatypes.

Lots of changes to imports and build files, and some fromPlugin calls removed.

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@shemnon.com>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2023-03-30 18:34:37 -05:00
Justin Florentine
f8a0f87405 KZG point eval precompile (#4860)
* KZG implementation

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2023-01-23 09:01:39 -05:00
Danno Ferrin
89ce75a614 Speedup modexp (#4780)
Increate the speed of ModExp gas calculations by using primitive types.
Use a native lib for modexp precompile.

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>

* Native modexp
2022-12-07 14:23:34 -07:00
Antoine Toulme
af25c9bac0 upgrade tuweni to 2.3.0 (#4464)
* upgrade tuweni to 2.3.0

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Add guava dependency explicitly

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* spotless

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* add antlr dependency

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* upgrade antlr and graphql-java

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* fix graphql validation messages

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* remove staged repo

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
2022-10-08 14:52:50 -07:00
mustafauzunn
817c1cbc24 Java modules support (#4468)
Add java module info to the manifests of the following  libraries used by the Besu EVM

./crypto - org.hyperledger.besu.internal.Crypto
./ethereum/rlp - org.hyperledger.besu.internal.Rlp
./util - org.hyperledger.besu.internal.Util
./datatypes - org.hyperledger.besu.Datatypes
./evm - org.hyperledger.besu.Evm
./plugin-api - org.hyperledger.besu.PluginApi

Signed-off-by: Mustafa Uzun <mustafa.uzun@limechain.tech>
2022-10-04 03:45:44 +02:00
Danno Ferrin
b4027d6e39 Use JUnit 5 for unit test execution (#3620)
Change the unit test execution to use the Junit5 JUnitPlatform. This
allows for a mix of junit 4 and junit 5 tests and for a gradual
migration to junit 5 instead of a big bang. One class depended on
junit 4 exceptions and was updated. Two tests depending on 
native libraries fail gracefully on mac (and only mac).

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2022-04-02 00:34:48 +10:00
Diego López León
ed1329cf84 Introduce SLF4J for logging (#3285)
* Bump SLF4J version

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Replace log4j2 API with SLF4j API

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Replace usage of LogManager#getFormatterLogger

This is for keeping compatibility with SLF4J. If neccesary, a specific formatter can be created for the RlpBlockImporter class

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Unset the default logging value for the retesteth

This is because it's not possible to resolve the root logger level into a Log4J2 field

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Prevent creation of Logger context outside SLF4J

org.hyperledger.besu.cli.BesuCommand#setAllLevels was taken from
https://github.com/apache/logging-log4j2/blob/rel%2F2.17.1/log4j-core/src/main/java/org/apache/logging/log4j/core/config/Configurator.java#L309

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Add FATAL level deprecation message

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* [Sonar] Fix java:S2139

Exceptions should be either logged or rethrown but not both

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* [Sonar] Fix java:S3457

Printf-style format strings should be used correctly

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Add changelog

Signed-off-by: Diego López León <dieguitoll@gmail.com>
2022-01-25 20:14:54 -03:00
Justin Florentine
db3a55997b Jumpdest constructor inj (#2821)
Implements caching of JUMP destinations for a contract, fixes #2607 

Signed-off-by: Justin Florentine <justin.florentine@consensys.net>

Co-authored-by: taccatisid <88524035+taccatisid@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Co-authored-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-10-04 11:01:43 -04:00
Danno Ferrin
fd961d5296 Evm move (#2790)
Move EVM to a standalone module

Move the EVM classes to a standalone module. This is mostly moves but
some API re-resign to peel out some features not essential to the EVM,
such as privacy support and ties to the data storage subsystem.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-09-22 17:59:48 -06:00