Commit Graph

287 Commits

Author SHA1 Message Date
Sally MacFarlane
c318b6a5ff [TESTING] Remove dependency on test containers (#7790)
* removed dep for testcontainers

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-29 13:33:46 +10:00
Fabio Di Fabio
71906fa9d4 Replace custom required options check with standard way (#7738)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-24 08:10:18 +00:00
Fabio Di Fabio
937c25acdd Update Java dependencies (#7786)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-21 09:49:06 +00:00
Fabio Di Fabio
9a7744763a Create and publish Besu BOM (Bill of Materials) (#7615)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-18 10:50:55 +00:00
Bhanu Pulluri
0f4e0d421f update jose4j version for handling cve CVE-2023-51775 (#7770)
* update jose4j version for handling cve CVE-2023-51775

Signed-off-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>

* remove duplicate line

Co-authored-by: Matt Whitehead <matthew1001@hotmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Matt Whitehead <matthew1001@hotmail.com>
2024-10-15 10:29:31 +00:00
Sally MacFarlane
f0e9f409e6 Copyright Besu (#7768)
* update copyright for new files only if not matching existing patterns
* scripts too
* scripts all use Besu copyright

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-15 12:47:41 +10:00
garyschulte
53c410f250 simple bump besu-native to 0.9.7 (#7740)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-10-07 14:56:39 -07:00
daniellehrner
c3aa3f4ecc update besu-native to 0.9.6 (#7678)
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-09-30 11:41:23 +00:00
Matt Whitehead
874cba016d Update protobuf to 32.25.5 to resolve CVE-2024-7254 (#7664)
Signed-off-by: Matthew Whitehead <matthew.whitehead@kaleido.io>
2024-09-23 11:58:47 +01:00
Fabio Di Fabio
edd3c4f0a0 Update dependencies (#7571)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-05 13:10:49 +00:00
Danno Ferrin
fa73102097 Performance improvements to EOF layout fuzzing (#7545)
* Performance improvements to fuzzing

Turning off guidance speeds the rate of testing up by 10%.
Also, add other options to store new guided-discovered tests.

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

* bring in the whole javafuzz lib so we can tweak it.

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

---------

Signed-off-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-09-01 23:01:04 +00:00
garyschulte
77743b22f2 Bump besu-native (#7543)
* pull in latest besu native, addressing ecmul perf

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-08-29 15:06:05 -07:00
Danno Ferrin
1598e6be67 EOF Differential Layout Fuzzer (#7488)
Differential EOF Layout Fuzzer guided by Besu's layout parser.

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-08-21 20:01:35 +00:00
garyschulte
ac9f8bbd91 Bump besu-native dependency (#7456)
* bump besu-native ahead of next release

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-08-14 00:22:40 +00:00
Matt Whitehead
b634b9c66c Update deps for CVEs (#7412)
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
2024-07-31 16:15:59 +01:00
garyschulte
c182ba113a bump execution-spec-tests, account for new name for main stable artifact (#7380)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-07-25 22:41:45 +00:00
garyschulte
8eef2df494 Feature/use gnark-crypto for eip-196 precompiles (#7262)
* squash commit, use gnark-crypto for eip-196
* use besu-native 0.9.3

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-07-17 13:45:40 -07: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
Gabriel-Trintinalia
e3e86c7ef6 Subnet-Based Peer Permissions (#7168)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-06-13 04:44:29 +00:00
Jason Frame
7ef6f0dbf3 Update gradle to 8.8 (#7199)
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2024-06-11 16:33:42 +10:00
Usman Saleem
2d59f4dd7e feat!: Java 21 for build and runtime (#7177)
* build: Update jacoco version to 0.8.11
* build: Enforce Java 21 and above check for build
* CI: Use Java 21 in Github CI workflows
* CI: Use Java 21 in circleci workflows
* build: Update gradle verification metadata for jacoco 0.8.11
* refactor: Fix javadoc related warnings which are applicable to Java 21
* fix(test): BackwardSyncAlgSpec slightly increase timeout to pass it in CI

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-06-06 15:29:18 +10:00
Usman Saleem
e4902af05e feat: Node discovery via DNS (#7129)
- Node discovery via DNS module as a vertex verticle (code adapted from Tuweni)
- Mock DNS server in unit tests.

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-06-05 10:21:02 +10:00
daniellehrner
e4daf6ada2 update besu-native to 0.8.5 (#7172)
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
2024-06-04 16:15:11 +02:00
Gabriel-Trintinalia
6f3650fc51 [MINOR] - Vertx and Netty minor version bumps (#7156)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-05-31 04:37:50 +00:00
Fabio Di Fabio
a31ffc9b03 Update Gradle plugins (#7137)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-05-23 22:38:23 +00:00
Stefan Pingel
5fa1750606 Peering - Find and remove peers from the peer table that share the same IP and TCP port with different discovery ports (#7089)
Find and remove peers from the peer table that share the same IP and TCP port with different discovery ports
---------

Signed-off-by: stefan.pingel@consensys.net <stefan.pingel@consensys.net>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-05-12 20:55:17 +10:00
Danno Ferrin
46475cea93 EIP-2537 activation and updates (#7053)
* Add EIP-2537 precompiles to prague
* Update gas schedule
* Update native lib to one with subgroup checks in mul and multiexp
* re-cost gas on most vectors

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-05-07 18:24:08 +00:00
Usman Saleem
87df2db175 build - Add missing gradle wrapper scripts (#7060)
Signed-off-by: Usman Saleem <usman@usmans.info>
2024-05-07 12:42:24 +10:00
garyschulte
5656c5555a Bump execution spec tests, reprise (#7056)
* execution-spec-tests generate state and blockchain tests separately

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-05-06 15:19:20 -07:00
Usman Saleem
c63f415c19 build - Upgrade to Gradle 8 (#7052)
* build - Upgrade gradle to 8.7
* build - Upgrade web3j plugin to 4.11.3
* build - Update gradle verification-metadata.xml

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-05-05 22:56:30 -06:00
garyschulte
ad3a227b57 Revert "bump execution-spec tests to 2.1.1 (#7050)" (#7051)
This reverts commit 71c9581b4f.

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-05-06 02:03:39 +00:00
Usman Saleem
ce59da5bd5 build - Apply spotless license header checks to shell scripts (#7048)
* build - apply license to shell scripts
* build - shell script license text
* fix - Add missing shebang line in evmtool benchmark shell scripts
* build - update shell license text and spotless regexp
* build - apply license header to shell scripts
* fix - Update shebang in splitList to use bash

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-05-04 08:41:39 +00:00
garyschulte
71c9581b4f bump execution-spec tests to 2.1.1 (#7050)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-05-04 18:12:34 +10:00
Fabio Di Fabio
d0a32bcf9c Update Gradle to 7.6.4 (#7030)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-05-03 09:23:51 +00:00
Usman Saleem
6728e095dd build - Update spotless grooyGradle configuration (#7044)
grooyGradle to use greclipse 4.31 version. Refactor format properties files into gradle/spotless

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-05-03 07:54:53 +00:00
Simon Dudley
1f3ff8598b bump web3j solidity plugin to 0.4.1 for gradle 8 compatibility (#7041)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2024-05-03 02:18:59 +00:00
Usman Saleem
4dc08d40a5 build - Preparing spotless license header option and adding license templates (#7015)
Preparing spotless license header option and adding license templates

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-05-01 08:56:56 +10:00
Danno Ferrin
001080a72b Upgrade spotless to 1.22.0 (#6898)
Upgrade spotless to 1.22.0 and reformat.
This is required for Java21 support.

Signed-off-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-04-09 04:12:56 +00:00
Fabio Di Fabio
cf5e3dae98 Update Web3j dependencies (#6811)
* Update Web3j dependencies

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

* Force old version of the solidity compiler to pass AT

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-04-02 15:06:37 +00:00
Usman Saleem
e954537fcc build - Refactor Besu custom error prone dependency (#6692)
Move Besu custom error-prone checks into its own repository and use it as an external dependency. This allows to move to a newer version of Google errorprone checks as well while cleaning up build.gradle file.

Key changes resulted due to this change:

* String toLowerCase and toUpperCase to use Locale.ROOT as argument
* Use interface such as List,Map or NavigatableMap instead of concrete class where appropriate.
* Simplify StringBuilder to plain String
* Suppress warnings where appropriate.
-----
Signed-off-by: Usman Saleem <usman@usmans.info>
2024-03-27 06:17:40 +10:00
Justin Florentine
578d14ec26 uprevved kzg library dependency, aligns version num with upstream (#6745)
Signed-off-by: Justin Florentine <justin+github@florentine.us>
2024-03-19 01:05:48 +00:00
Fabio Di Fabio
854d35b490 Update Vert.x to 4.5.4 (#6666)
* Update Vert.x to 4.5.4

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

* Enable websocket write handlers

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-03-07 09:23:37 +00:00
Fabio Di Fabio
c34070f9fe Update commons-compress to 1.26.0 (#6648)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-03-01 09:50:38 +00:00
Matt Whitehead
59da092733 Restrict downgrade (#6307)
* Add Besu version to DB metadata. Check for downgrades and reject if version < version recorded in DB metadata.

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Add --allow-downgrade CLI arg. If set it allows the downgrade and updates the Besu version in the metadata file to the downgraded version.

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Update gradle verification XML

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Add and update tests

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Refactoring

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Remove versioning from RocksDB, now in separate VERSION_DATADATA.json

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Tidy up and tests for the new class

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Move downgrade logic into VersionMetadata as BesuCommand is already very big

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Add more tests

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Refactor the naming of the option to version-compatibility-protection

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Remove remaining references to allow-downgrade

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Rename test

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Update comments

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Metadata verification update

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* gradle fix

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Enable version downgrade protection by default for non-named networks

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Fix default logic

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Update ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/VersionMetadata.java

Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Matt Whitehead <matthew1001@hotmail.com>

* Update ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/VersionMetadata.java

Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Matt Whitehead <matthew1001@hotmail.com>

* mock-maker-inline no longer needed

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

---------

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
Signed-off-by: Matt Whitehead <matthew.whitehead@kaleido.io>
Signed-off-by: Matt Whitehead <matthew1001@hotmail.com>
Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-02-21 15:25:05 +00:00
Fabio Di Fabio
a563cf23c1 Upgrade Prometheus and Opentelemetry dependencies (#6422)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
2024-01-30 18:34:06 +10:00
Simon Dudley
5a3ed755c3 Downgrade rocksdbjni to 8.3.2 following FOREST bug (#6419)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2024-01-18 07:46:49 +10:00
Fabio Di Fabio
25f8e57a36 Upgrade tech.pegasys.discovery:discovery (#6414)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-01-17 10:06:06 +01:00
Fabio Di Fabio
724e3d040e Upgrade Mockito (#6397)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-01-16 09:27:57 +10:00
Fabio Di Fabio
9fbe4fbbb2 Upgrade Guava dependency (#6396)
* Bump com.google.guava:guava to 33.0.0

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

* Update pending tx estimated memory size after Guava update

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

* Rebuilt Gradle validation metadata

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

* Update CHANGELOG

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-01-15 07:50:45 +10:00
Fabio Di Fabio
d918baa4ae Upgrade com.fasterxml.jackson dependencies (#6378)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-01-12 11:27:59 +10:00