1208 Commits

Author SHA1 Message Date
Vaidik
2384c09a82 Fix #7810 (#7867)
* fix-#7810
Signed-off-by: vaidikcode <vaidikbhardwaj00@gmail.com>

* fix-#7810
Signed-off-by: vaidikcode <vaidikbhardwaj00@gmail.com>

---------

Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-11-20 06:44:55 +10:00
Fabio Di Fabio
833a5ce5dd Simplify ProtocolContext creation (#7792)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-11-19 14:51:04 +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
f156a17d3f Fix registration of RocksDB metrics categories (#7879)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-11-14 14:58:05 +11:00
amsmota
c15afb915b control jemalloc reporting and loading (#7424)
* Implementing Issue #7047 - Optionally load jemalloc

Signed-off-by: Antonio Mota <antonio.mota@citi.com>

* Implementing Issue #7047 - Optionally load jemalloc

Signed-off-by: Antonio Mota <antonio.mota@citi.com>

* Implementing Issue #7047 - Optionally load jemalloc: fixes after review

Signed-off-by: Antonio Mota <antonio.mota@citi.com>

* Implementing Issue #7047 - Optionally load jemalloc: added entry to CHANGELOG

Signed-off-by: Antonio Mota <antonio.mota@citi.com>

* Changes after review

Signed-off-by: Antonio Mota <antonio.mota@citi.com>

* Added env var check in unix script

Signed-off-by: Antonio Mota <antonio.mota@citi.com>

* Improved code and script, build and tested

Signed-off-by: amsmota <amsmota@gmail.com>

* Improved code and script, build and tested

Signed-off-by: amsmota <amsmota@gmail.com>

---------

Signed-off-by: Antonio Mota <antonio.mota@citi.com>
Signed-off-by: amsmota <amsmota@gmail.com>
2024-11-13 08:50:56 +00:00
Fabio Di Fabio
02959966e3 Merge branch 'main' into zkbesu 2024-11-12 12:11:24 +01:00
Fabio Di Fabio
1c75afbab9 Remove the Synchronizer from ProtocolContext (#7863)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-11-08 14:40:02 +00:00
Fabio Di Fabio
62b8b4e1d8 Make healing an action of the WorldStateArchive (#7862)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-11-08 12:44:28 +00:00
Bhanu Pulluri
e17ebc5e8d Add TLS/mTLS options for websockets (#7854)
* Fix incorrect duration for THREE_MINUTES from 1 minute to 3 minutes

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

* Add options to enable TLS/mTLS for websocket connections

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

* Revert an irrelevant change

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

* Update tests, options and option dependencies

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

* Fix CHANGELOG entry

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

* Fix CHANGELOG entry

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

---------

Signed-off-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Co-authored-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-11-08 10:08:11 +00:00
Fabio Di Fabio
640d3bac0a Merge branch 'main' into zkbesu 2024-11-06 09:16:45 +01:00
Justin Florentine
d73e815126 calling the wrong create() method (#7857)
Signed-off-by: jflo <justin+github@florentine.us>
2024-11-05 15:56:07 +00:00
Fabio Di Fabio
eb7bb53d3a Merge branch 'main' into zkbesu 2024-11-05 12:27:36 +01:00
garyschulte
1da0e9f232 remove dangling retesteth references (#7856)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-11-05 07:16:36 +10: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
Fabio Di Fabio
3ed3e9adf7 Merge branch 'main' into zkbesu
# Conflicts:
#	.github/issue_template.md
2024-11-04 11:30:27 +01: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
garyschulte
d846e3749b Remove retesteth rpc service and commands (#7833)
* remove retesteth rpc service and commands

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-10-31 19:18:27 +00:00
Fabio Di Fabio
85c771628e Merge branch 'main' into zkbesu 2024-10-31 13:56:29 +01:00
Matilda-Clerke
db29df7c8d 7311: add GetReceiptsFromPeerTask (#7638)
Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
2024-10-31 08:29:46 +10:00
Fabio Di Fabio
ba86ce1181 Add a method to check if a metric category is enabled to the plugin API (#7832)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-30 13:12:10 -04:00
Fabio Di Fabio
22a570eda4 Fix registering new metric categories from plugins (#7825)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-30 16:21:10 +01: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
Fabio Di Fabio
3cc694eb44 Merge branch 'main' into zkbesu 2024-10-28 17:17:41 +01:00
Fabio Di Fabio
ee69279a94 Add getPendingTransactions to TransactionPoolService (#7813)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-27 23:40:33 +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
Fabio Di Fabio
0037615dc4 Merge branch 'main' into zkbesu
# Conflicts:
#	build.gradle
2024-10-24 12:01:44 +02:00
Jason Frame
f16d3526db Change execution requests to use flat encoding (#7771)
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2024-10-24 09:02:43 +00:00
Fabio Di Fabio
516559fadc Cleanup: Synchronizer is always present in protocol context (#7791)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-24 08:36:21 +00: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
eda44d0d46 Merge branch 'main' into zkbesu 2024-10-22 13:52:26 +02:00
Sally MacFarlane
d8d1237252 [TESTING] remove junit4 assumeThat (#7788)
* use junit5 assumeTrue/false

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-22 00:11:28 +00:00
Sally MacFarlane
1b0da83f19 use junit5 version of parameterized test (#7789)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-21 20:56:09 +00:00
Fabio Di Fabio
3e05673d70 Merge branch 'main' into zkbesu 2024-10-18 10:32:33 +02:00
Fabio Di Fabio
dfbfb96f28 Fine tune already seen txs tracker when a tx is removed from the pool (#7755)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-17 09:23:59 -07:00
Fabio Di Fabio
ce902dba43 Merge branch 'main' into zkbesu
# Conflicts:
#	.github/workflows/BesuContainerVerify.sh
#	.github/workflows/splitList.sh
#	.github/workflows/splitTestsByTime.sh
#	gradle.properties
2024-10-16 11:41:19 +02: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
Simon Dudley
b6a09cd136 revert "7536 use head for snap sync (#7718)" (#7767)
This reverts commit a7e1f6ace0.

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2024-10-15 10:35:45 +10:00
Sally MacFarlane
fd50a3e0af [TEST] extra testing for host and port default values (#7741)
* extra test for host and port leak

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-14 01:19:35 +00:00
Fabio Di Fabio
1f5bd254c5 Merge branch 'main' into zkbesu 2024-10-11 10:33:47 +02:00
Danno Ferrin
efb6906e13 Move EOF to the Osaka Fork (#7719)
* Move EOF to the Osaka Fork

* Ensure Osaka activations are working
* Remove CancunEOF and PragueEOF forks
* Move EOF tools to default to Osaka

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

* remove eof tests that fail only because of fork

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

* Restore CancunEOF


* Update unit tests to use "Cancun" as pre-eof fork
* Make PC in trace zeroed to start of code section 0
* Update extcall to consider precompiles warm
* Add stack checking to CALLF operation

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-10-11 09:43:17 +10:00
Matt Whitehead
03a0cfad4b Support BFT mining coordinator being temporarily stopped while syncing (#7657)
* Support BFT mining coordinator being temporarily stopped while syncing happens

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

* Apply same change to IbftBesuControllerBuilder

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

* Add changelog entry

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

* Add event queue start/stop test

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

* Add BFT mining coordinator tests

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

* Typo

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

* Update consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/BftEventQueue.java

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

* Update consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/BftProcessor.java

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

---------

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
Signed-off-by: Matt Whitehead <matthew1001@hotmail.com>
Signed-off-by: Matt Whitehead <matthew.whitehead@kaleido.io>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-09 12:07:20 +01:00
Fabio Di Fabio
f303e0012a Merge branch 'main' into zkbesu
# Conflicts:
#	.github/workflows/sonarcloud.yml
#	build.gradle
2024-10-08 17:16:51 +02:00
kingnhcomcast
1ce28daca5 7632 - add sync-min-peers to log and config overview (#7732)
add sync-min-peers to log and config overview
Signed-off-by: Kevin King <kevin.king@consensys.net>
2024-10-07 17:28:14 +00:00
kingnhcomcast
a7e1f6ace0 7536 use head for snap sync (#7718)
* Add support to sync to head instead of safe block during snapsync

Signed-off-by: Kevin King <kevin.king@consensys.net>
Signed-off-by: kingnhcomcast <114761064+kingnhcomcast@users.noreply.github.com>
2024-10-07 09:46:58 -07:00
Sally MacFarlane
21e95a9efb add correct default to rpcHost (#7725)
---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
2024-10-04 09:27:14 +00:00
Fabio Di Fabio
ef199858b3 Merge branch 'main' into zkbesu
# Conflicts:
#	.github/workflows/BesuContainerVerify.sh
#	.github/workflows/docker-promote.yml
#	.github/workflows/draft-release.yml
2024-10-04 11:17:22 +02:00
Glory Agatevure
67d738c8a1 Add ephemery network config (#7563)
* Add Ephemery genesis config file

Signed-off-by: gconnect <agatevureglory@gmail.com>

---------

Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: Glory Agatevure <agatevureglory@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-04 01:40:48 +00: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