317 Commits

Author SHA1 Message Date
Karim Taam
552cb283f9 rename diffbased bonsai prefix (#8424)
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
2025-03-17 14:08:35 +00: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
Bhanu Pulluri
f39b90bd25 Add condition checks to stabilize BFT soaking test (#8379)
* Add delays to stabilize BFT soaking test

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

* Enable specifying timeout for peer discovery in ATs

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

---------

Signed-off-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Signed-off-by: Bhanu Pulluri <59369753+pullurib@users.noreply.github.com>
Co-authored-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-03-13 23:25:52 +00:00
Bhanu Pulluri
2db46e964c Enable Quorum/IBFT1 to Besu migration (#8262)
* Enable Quorum/IBFT1 to Besu migration

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

* Fix BftMining acceptance test

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

* Introduce delay after London fork update in BFT mining test to prevent timing issues

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

* Update besu/src/main/java/org/hyperledger/besu/controller/IbftLegacyBesuControllerBuilder.java

Co-authored-by: Matt Whitehead <matthew1001@hotmail.com>
Signed-off-by: Bhanu Pulluri <59369753+pullurib@users.noreply.github.com>

* Review changes

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

* update creating additional JSON RPC methods for all controllerbuidlers in consensus schedule

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

* Create ethprotocol manager and plugin factory for both consensus controllers in migration

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

* Refactor resource files

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

* fix verification metadata

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

* fix regression

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

* update changelog

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

* Fix controller selection at the transition block

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

* Review changes

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

* Revert BftExtraData changes

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

---------

Signed-off-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Signed-off-by: Bhanu Pulluri <59369753+pullurib@users.noreply.github.com>
Co-authored-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Co-authored-by: Matt Whitehead <matthew1001@hotmail.com>
Co-authored-by: Matt Whitehead <matthew.whitehead@kaleido.io>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-03-12 14:08:51 +00:00
Matilda-Clerke
90db4872a4 7935: add era1 format to blocks importer (#8352)
* Refactor to use clock to validate expiry

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* 7935: Finish unit testing E2StoreReader

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Build out E2StoreReader and associated files

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Spotless

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Add javadoc to new util module classes

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Implement Era1 block import sub command

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Remove unnecessary e2 and era file stuff

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Rename files to be era1 specific

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Rename e2 package to era1

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Spotless

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Rename Era1StoreReaderListener to Era1ReaderListener

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Clean up after merge

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Set up Era1BlockImporter to enable FAST sync and variations upon besu running

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Use bouncycastle for little endian to long conversion

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Rename slot related variables to blockIndex

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Spotless

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Fix broken unit test

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Fix AT compilation

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Fix javadoc

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Rework Era1BlockImporter to use appropriate data directory. Add unit test

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Fix javadoc

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* changelog

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Add era1 files to .gitattributes as binary file type

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

* Remove pivot block header file creation from Era1BlockImporter

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

---------

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
Signed-off-by: Matilda-Clerke <matilda.clerke@consensys.net>
2025-03-11 13:42:56 +11:00
Bhanu Pulluri
e0bad4660e Deprecate Xsnapsync-bft-enabled option , to be removed in future release (#7930)
* Move snapsync-bft-enabled to stable options

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

* Add deprecation comments:

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

* Changelog entry for deprecation

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

* spotlessApply

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

* Update CHANGELOG.md

Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Bhanu Pulluri <59369753+pullurib@users.noreply.github.com>

* Removed option value checking to enable snapsync for bft networks. It's now supported by default

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

* Add acceptance tests for QBFT sync

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

* Update test

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

* update CHANGELOG

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

* Update besu/src/main/java/org/hyperledger/besu/cli/options/SynchronizerOptions.java

Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Bhanu Pulluri <59369753+pullurib@users.noreply.github.com>

* add delay to let the new validator sync

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

* update BFT sync AT to use conditions and timeouts

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

---------

Signed-off-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Signed-off-by: Bhanu Pulluri <59369753+pullurib@users.noreply.github.com>
Co-authored-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-03-10 08:27:03 +00:00
Sally MacFarlane
6361ef5feb remove tests and associated classes for smart contract permissioning (#8372)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-03-05 02:58:14 +00:00
Sally MacFarlane
887e6d5101 remove unused wiremock dependency (#8318)
* remove unused wiremock dependency

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

* updated metadata

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-02-25 08:49:47 +10:00
Fabio Di Fabio
f54e4555bb Fix and re-enable CliqueProposeRpcAcceptanceTest (#8324)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-02-20 05:36:21 +00:00
daniellehrner
18e3917f37 increase mainnet & Sepolia gas limit to 36M (#8249)
* increase mainnet gas limit to 36M, remove unused gas limit calculator from BesuControllerBuilder

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>

* gas limit in SystemCallProcessor is independent of the block gas limit

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>

* update test to reflect gas limit increase from 30M -> 36M

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>

* remove unused gas limit check from previous commit

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>

* moved the target gas limit constant for testnets to the same class as the one for mainnet

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>

* fix tests

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>

---------

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
2025-02-18 14:15:00 +00:00
Fabio Di Fabio
ccb23ab9a0 Fix the cleanup of subprocesses after each AT (#8306)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-02-16 09:58:24 +10:00
Fabio Di Fabio
46e74d1949 Stop all sub processes spawn by acceptance tests (#8284)
* Stop all sub processes spawn by acceptance tests

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

* Reduce memory used by Gradle

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

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-02-14 08:33:14 +10:00
Roman Vaseev
d65b525aef Configurable Storage Factory in ThreadBesuNodeRunner (#8259)
Co-authored-by: Jason Frame <jason.frame@consensys.net>
2025-02-06 19:11:43 +10:00
Sally MacFarlane
5534d650fd Revert "Stop all sub processes spawn by acceptance tests" (#8236)
This reverts commit d691f45b0e.

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-02-04 15:00:28 +10:00
Fabio Di Fabio
d691f45b0e Stop all sub processes spawn by acceptance tests (#8226)
* Stop all sub processes spawn by acceptance tests

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

* Split long running test in 3 parts

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

* Run ATs sequentially

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

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-02-04 08:36:49 +10:00
Karim Taam
68665db454 Fix code delegation issue found in pectra devnet (#8203)
* add acceptance tests to verify that code delegations are persisted even if the tx itself fails
* set node to use bonsai, set correct nonce for code delegation, make sure revert in contract has the 2 necessary items on the stack
* Hive test fix: only add account if authority nonce is valid (0)
---------

Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
2025-01-31 05:42:13 +00:00
Gabriel-Trintinalia
b150b103e2 Check if discovery service is running before admin_addPeer (#8160)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2025-01-23 22:29:13 +00:00
Gabriel-Trintinalia
702ce74c3d Simulation: Add nonce to call parameter (#8139)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2025-01-20 15:31:52 +11:00
Simon Dudley
ffd593d72b Remove EIP-7742 (#8083)
This EIP was removed and equivalent functionality replaced by EIP-7840.

---

Revert "Rename targetBlobCount to targetBlobsPerBlock (#7981)"

This reverts commit 1671306749.

Revert "EIP-7742: Add target_blob_count to block header (#7808)"

This reverts commit f855d5b72f.

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-01-07 01:19:26 +00:00
Justin Florentine
3b4136dac5 rename GenesisConfigFile because it's not a file at all (#8050)
Signed-off-by: jflo <justin+github@florentine.us>
2024-12-18 17:39:00 -05:00
Fabio Di Fabio
f8e93bf544 Support rpc pending block tag when estimating gas (#7951)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-12-06 12:50:38 +00:00
Fabio Di Fabio
c320724d29 TransactionSimulator can be a singleton (#7925)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: daniellehrner <daniel.lehrner@consensys.net>
2024-11-29 13:52:24 +00:00
Sally MacFarlane
63496dbc6c Remove P2P TLS (experimental) feature (#7942) 2024-11-29 15:43:50 +10:00
Gabriel-Trintinalia
40648511cb Add mining service (#7913)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-11-25 01:59:14 +00:00
Fabio Di Fabio
58acfcea78 Add support for TransactionPoolService in acceptance tests (#7861)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-11-19 17:19:53 +00:00
Justin Florentine
dc81641c58 narrows dependencies of BlockchainService (#7882)
Signed-off-by: jflo <justin+github@florentine.us>
2024-11-19 13:15:09 +00:00
Fabio Di Fabio
a585f1f2f7 Fully initialize MetricCategoryRegistry for acceptance tests (#7860)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-11-06 06:04:54 +00:00
Justin Florentine
03a2b92f00 IntelliJ do not fail me (#7855)
Signed-off-by: jflo <justin+github@florentine.us>
2024-11-04 12:36:11 -08:00
Justin Florentine
8fce5aa6ff IntelliJ do not fail me (#7846)
Signed-off-by: jflo <justin+github@florentine.us>
2024-11-04 09:12:00 +10:00
Justin Florentine
7eb7b870c3 Refactoring around MiningParameters (#7798)
decoupled parent block header from block creators
optionalized some fields of ProtocolSchedule constructor, which will allow us to reduce number of constructors later.
Refactored JsonBlockImporterTest so it can provide a BesuComponent
ProtocolScheduleBuilder optionalizes the default chainid
Blocks SubCommand is now Dagger aware
Creates but rarely uses ProtocolSpec and ProtocolSchedule modules. Deeper adoption pending.
Adds a Coinbase module with fixed values for use in testing.
Introduces an EthereumCoreComponent, to be used as a subcomponent of BesuComponent in the future.
Introduces a MiningParameters module with common static values used by tests. Removes MiningParameters static constructor.

---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
Signed-off-by: jflo <justin+github@florentine.us>
2024-11-01 09:26:41 +10:00
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
Simon Dudley
f855d5b72f EIP-7742: Add target_blob_count to block header (#7808)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2024-10-29 00:30:33 +00:00
Preeti
8ed4a904f1 chore:Removed Dupicate AcceptanceTestBase (#7815)
* chore:Removed Dupicate AcceptanceTestBase

Signed-off-by: Preeti <35308865+pr9t@users.noreply.github.com>

* formatting

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

---------

Signed-off-by: Preeti <35308865+pr9t@users.noreply.github.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-28 00:02:53 +00:00
Karim Taam
a3b886368f Data storage option refactoring (#7807)
Renaming and refactoring the classes common to both Bonsai and Verkle to facilitate the future integration of Verkle.

---------

Signed-off-by: Karim Taam <karim.t2am@gmail.com>
2024-10-25 15:43:55 +00:00
Sally MacFarlane
653ebcbd70 switch to junit 5 (#7799)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-23 11:00:07 +10:00
Fabio Di Fabio
b23fd78da2 Add metrics related services to the Besu context for acceptance tests (#7797)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-22 22:37:26 +00:00
Sally MacFarlane
76060a0416 [TESTING] remove junit4 dependency (#7793)
* migrate to junit5
* remove junit4 dep
* remove vintage dep

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-23 07:52:51 +10:00
Justin Florentine
911f12efa0 Repackage options (#7688)
Updates MetricsOptions to implement CLIOptions, and to contain its unstable options.
---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2024-10-04 11:17:46 +10:00
Justin Florentine
f4dc48d94d Simplifying BesuCommand step 1 (#7682)
Simplifying BesuCommand
---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2024-10-02 15:46:34 +00:00
Fabio Di Fabio
94099d18f5 Add suport for --plugins option in acceptance tests (#7713)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-02 14:32:48 +02:00
Gabriel-Trintinalia
e0518c6d94 Force besu to stop on plugin initialization errors (#7662)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-09-24 10:50:19 +00:00
Justin Florentine
7d3e376771 shift creation of plugin context to BesuCommand for now (#7625)
* shift creation of plugin context to BesuCommand for now
* mock component will provide a no-op metrics sys

---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2024-09-18 14:31:03 +00:00
George Tebrean
6ed1db32ae Issue - 7554 remove unused privacy test classes (#7569)
* remove unused classes

Signed-off-by: George Tebrean <george@web3labs.com>

* removed duplication from changelog

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

---------

Signed-off-by: George Tebrean <george@web3labs.com>
Signed-off-by: George Tebrean <99179176+gtebrean@users.noreply.github.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-09-12 08:18:26 +00:00
Justin Florentine
563afdb3ec Dagger plugin context (#7465)
* Eliminates dependency from Controller on BesuComponent

---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
Co-authored-by: garyschulte <garyschulte@gmail.com>
2024-09-03 22:40:57 +00:00
Sally MacFarlane
6d33164742 removed unused methods (#7561)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-09-03 21:09:25 +00:00
Justin Florentine
d5c10e2b4e Dagger controller tests (#7567)
Separate out flex group privacy test since it requires differently configured dependencies.
test specific, inline module/component definitions
reusable module for providing mockable enclaves, besu commands, and genesis
dagger support for transaction simulation
dagger support for plugin setup

---------

Signed-off-by: jflo <justin+github@florentine.us>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
2024-09-03 12:43:51 -04:00
Preeti
c915e057cf chore: Removed Privacy ATs (#7530)
* chore: Removed privacy acceptance classes

Signed-off-by: Preeti <35308865+pr9t@users.noreply.github.com>

* Chore: removed classes that extends PrivateLogFilterAcceptanceTest and FlexiblePrivacyAcceptanceTestBase

Signed-off-by: Preeti <35308865+pr9t@users.noreply.github.com>

---------

Signed-off-by: Preeti <35308865+pr9t@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-09-02 09:26:11 +10:00
Matt Whitehead
0ec335fbf1 BFT soak test - use both db modes (#7496)
* For test node runners use provided data storage config

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

* Make the BFT soak mining tests use both Forest and Bonsai DBs

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

---------

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
2024-08-21 09:42:52 +01:00
Matt Whitehead
d7656b9899 For test node runners use provided data storage config (#7495)
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
2024-08-21 07:40:17 +00:00
Fabio Di Fabio
fd077a7273 Revert "Dagger controller tests (#7341)" (#7497)
This reverts commit 38a025b870.

# Conflicts:
#	acceptance-tests/dsl/src/main/java/org/hyperledger/besu/tests/acceptance/dsl/node/ThreadBesuNodeRunner.java

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-08-20 23:24:46 +00:00