Commit Graph

5339 Commits

Author SHA1 Message Date
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
Fabio Di Fabio
465fd1cbe5 Fix and restore disabled block creation unit tests (#7331)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-07-16 13:09:10 +02:00
Fabio Di Fabio
782553eb03 Stop transaction selection on TX_EVALUATION_TOO_LONG (#7330)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-07-16 09:47:16 +00:00
Usman Saleem
3366f79c95 fix: eth_call deserialization to correctly ignore unknown fields in the transaction object (#7323)
* fix: Use Builder for JsonCallParameter
* changelog
* add additional unit tests
* fix: Update builder to withGas to match the json eth_call
---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-07-16 19:19:22 +10:00
Sally MacFarlane
223f1bc3bb EIP-7251 add consolidation request type (#7266)
* add request type for consolidations, encoder, decoder and tests

* added raw tx for consolidation

* add consolidation reqs to EngineGetPayloadResultV4

* set storage slot value to 0 initially and value for tx

* updates plugin api

Signed-off-by: Justin Florentine <justin+github@florentine.us>

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2024-07-16 00:44:06 +00:00
Sally MacFarlane
23123719fb removed PKI backed QBFT (#7310)
* removed PKI backed QBFT

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

* changelog

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-07-16 10:21:16 +10:00
Danno Ferrin
17f4dc9a8a Update unit test (#7317)
* Update parameterized unit tests so the enumerate with --dry-run
* Update the prague-withdrawal.json unit test to handle current code

Signed-off-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-07-15 04:31:18 +00:00
Sally MacFarlane
ab513b26a2 disable flaky test (#7308)
* disable flaky test

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

* disable flaky test

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-07-15 04:02:50 +00:00
Danno Ferrin
51f10dcdd2 Update datacopy (#7319)
Check for OOG earlier in DataCopy.
Add unit tests to cover operation branches.

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-07-15 03:05:22 +00:00
Matilda-Clerke
5cb00f2f5f 6612 update changelog with removed syncmodes (#7320)
* 6612: Update changelog with removal of deprecated sync modes

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

* 6612: Update changelog with removal of deprecated sync modes

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

* 6612: Update changelog with removal of deprecated sync modes

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

---------

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
2024-07-15 12:45:36 +10:00
garyschulte
45dbc8a9a3 Feature/use gnark-crypto for eip-2537 (#7316)
* use gnark-crypto for bls precompiles

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-07-14 15:46:44 -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
Danno Ferrin
965e757d81 EOF Reference Test Fixes (#7306)
Fix a number of issues found in reference tests and evmone tests.

- Be tolerant of more nulls in json
- Support ContainerKind in reference tests
- re-order EXTCALL oeprands
- correct return value for REVERT in EXT*CALL
- re-order EOFCREATE code validation

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-07-12 14:43:44 +00:00
Matilda-Clerke
41f007fb80 6612: Remove deprecated sync modes and related helper methods (#7309)
* 6612: Remove deprecated sync modes and related helper methods

Signed-off-by: Matilda-Clerke <matilda.shay.clerke@gmail.com>
2024-07-12 16:28:56 +10:00
Stefan Pingel
d35c6d7875 Make the retrying snap tasks switching (#7307)
* make snap tasks switching

Signed-off-by: stefan.pingel@consensys.net <stefan.pingel@consensys.net>
2024-07-12 05:29:19 +00:00
Danno Ferrin
812dc74742 Add evmtool block-test subcommand (#7293)
* Add evmtool block-test subcommand

Add an evmtool subcommand that will run non-hive blockchain tests.

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-07-12 03:19:50 +00:00
Sally MacFarlane
3f00bad598 [MINOR] Fixed some typos (#7299)
* typos

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-07-10 23:49:37 +00:00
Chaminda Divitotawela
3117f15a3a Fix status badge for documentation (#7304)
Documentation has been moved to GitHub pages and no longer use readthedocs. Updated the README status badge for docs with correct link

Signed-off-by: Chaminda Divitotawela <cdivitotawela@gmail.com>
2024-07-10 08:43:07 +00:00
Usman Saleem
ae7ddd1c9a feat: Enhance --profile to load external profiles (#7292)
* feat: --profile can load external profiles
* fix external profile name method
* fix ProfilesCompletionCandidate
* test: Add unit tests
* changelog: Update changelog
* test: Fix TomlConfigurationDefaultProviderTest
* test: Fix BesuCommandTest

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-07-10 04:20:51 +00:00
George Tebrean
5660ebc1ce Increment private nonce even if transaction failed. (#6593)
Increment private nonce even if transaction failed

Signed-off-by: George Tebrean <george@web3labs.com>
Signed-off-by: stefan.pingel@consensys.net <stefan.pingel@consensys.net>
Co-authored-by: stefan.pingel@consensys.net <stefan.pingel@consensys.net>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
2024-07-10 03:51:53 +00:00
gringsam
33f2ae2726 Fixed outdated tech redirect link. (#7297)
* fix wiki link

Signed-off-by: Snazzy <snazzysam933@gmail.com>

* fix format

Signed-off-by: Snazzy <snazzysam933@gmail.com>

* change knownHash

Signed-off-by: Snazzy <snazzysam933@gmail.com>

---------

Signed-off-by: Snazzy <snazzysam933@gmail.com>
2024-07-10 12:26:51 +10:00
Gabriel-Trintinalia
6673287b17 Execute requests before block persist (#7295)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-07-05 08:42:47 -06:00
Simon Dudley
d2b42d56d8 Update limit trie logs validation message for sync-mode=FULL (#7279)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-07-04 11:10:44 +00:00
Gabriel-Trintinalia
4ee14eca1d Implement System Calls (#7263)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-07-04 12:21:25 +10:00
Stefan Pingel
8a9a84ad58 Check for snap server (#6609)
* EthPeer add isServingSnap to be able to make sure that we have enough snap servers connected when we are snap syncing

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-07-03 15:17:13 +10:00
Chaminda Divitotawela
8d8dbf05b5 Turn off CicleCI for Besu (#7291)
All the CI jobs run in GitHub actions and Circle CI it no longer needed in Besu project

Signed-off-by: Chaminda Divitotawela <cdivitotawela@gmail.com>
2024-07-03 11:49:26 +10:00
Matt Whitehead
8ca7129b0b Add experimental --Xsnapsync-bft-enabled which enables snap sync for BFT chains (#7140)
* Create a BFT-specific pivot block handler

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

* Change visibility

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

* Refactor sync-peer-count internal variable to match name, add experimental flag to enabled snap + BFT

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

* Merge with main

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

* Fix uppercase

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

* Address synchronization issue with trie pruning. Create BFT-specific account range handler. Add pipeline name and logs

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

* Remove debug log

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

* fixing snapsync for empty state

Signed-off-by: Karim Taam <karim.t2am@gmail.com>

* Don't queue up events we can't handle

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

* Fix timing window where a validator with an empty data dir sometimes falls back to full sync if peer status isn't received quickly enough

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

* Remove BFT-specific account request class. Not needed

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

* Refactor some more 'fast' sync variables that are common to all pivot-based sync types

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

* In FULL sync mode, disable bonsai-limit-trie-logs-enabled instead of failing to start

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

* Add javadoc comments, clarify overriding bonsai-limit-trie-logs-enabled

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

* Add BFT pivot block selector tests

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

* Fix failure error message

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

* Remove the unnamed Pipe constructor and update tests to set a pipe name

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

* Revert some info logs back to debug given the feedback on noise in the logs syncing with holesky

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

* Refactor fastSyncPivotDistance to syncPivotDistance

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

* Incomplete refactoring

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

* Update BFT event queueing tests

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

* Event queue test fixes

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

* Remove automatic setting of bonsai-limit-trie-logs-enabled to false if sync-mode = FULL (moving to another PR)

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

---------

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Signed-off-by: Matt Whitehead <matthew.whitehead@kaleido.io>
Co-authored-by: Karim Taam <karim.t2am@gmail.com>
2024-07-02 09:39:59 +01:00
garyschulte
3a73dccd61 next release version after 24.7.0 (#7285)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-07-01 23:06:55 +00:00
Danno Ferrin
264e7d9fac Deeper tracing of self-destructed accounts (#7284)
Consider previously self-destructed accounts when creating accounts.

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-07-01 22:32:12 +00:00
Danno Ferrin
c0efeef89a Update EIP-2935 contract (#7281)
Use the updated contract and address for EIP-2539.

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-07-01 09:58:40 -06:00
Matt Whitehead
08772b466e Add info-level diagnostic logs to aid with resolving stalled BFT chains (#7271)
* Add info-level diagnostic logs to aid with resolving stalled BFT chains

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

* Add javadoc

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>
2024-07-01 07:48:21 +00:00
Danno Ferrin
20b82a40c9 Rename ValidatorPublicKey to ValidatorPubKey (#7280)
Adapt to EIP-7002 name change for validator public key in all places.

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-06-28 23:07:26 +00:00
Usman Saleem
fa63fc45b4 javadoc - Add missing javadoc for evmtool module (#7277)
Signed-off-by: Usman Saleem <usman@usmans.info>
2024-06-28 16:55:47 +00:00
Justin Florentine
c298a9e77e Evm tool readme update (#7274)
* update paths to binary. update docker build to use java 21
* updated suggested jdk

---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2024-06-28 12:37:16 +00:00
Simon Dudley
6d55f91a9c Promote storage x-trie-log subcommand to trie-log (#7278)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2024-06-28 16:09:52 +10:00
Danno Ferrin
75f565e0c7 T8n support for isStateTest and empty accounts (#7275)
Update t8n executor to support new isStateTest env flag that will
disable extra-transactional processing such as block rewards and beacon
root.
Also, make sure such extra-transactional commits don't create empty
accounts.

Signed-off-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Usman Saleem <usman@usmans.info>
2024-06-28 15:20:51 +10:00
Usman Saleem
3c5ce8bb89 Fix javadoc for ethereum api module, graphql package (#7272)
* javadoc - Adding missing javadocs ethereum:api graphql package

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-06-28 10:40:55 +10:00
Matt Whitehead
d7f851071c Add bootnodes to the maintained peer list (#7257)
* Add bootnodes to the maintained peer list

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

* Update unit tests

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

* Add entry in changelog

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

* Tweak unit test

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

* Refactor to keep common steps the same for both cases

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

* Add debug log, call sanitizePeers() only once

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

---------

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
2024-06-27 11:34:44 +01:00
Sally MacFarlane
571e03096d Disable Flaky tests - permissioning (#7256)
* disable some flaky tests

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

* correct name for test

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

* formatting

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

* disable some flaky tests

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Usman Saleem <usman@usmans.info>
2024-06-27 15:10:19 +10:00
Usman Saleem
bcacbab467 Fix javadoc for ethereum:core top level package (#7270)
* javadoc - Apply javadoc to ethereum core top level package

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-06-27 14:03:25 +10:00
Usman Saleem
77183f6d60 javadoc: Adding javadoc for ethstats module (#7269)
* javadoc: Adding javadoc for ethstats module

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-06-27 03:09:00 +00:00
Jason Frame
67637fa3f0 Snapserver GetTrieNodes request to handle short hash for storage (#7264)
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2024-06-27 09:35:31 +10:00
Jason Frame
47f341edf5 Snapserver responses to return at least one response (#7190)
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2024-06-26 05:50:45 +00:00
Danno Ferrin
0f2046d4b0 Temporary CancunEOF fork for EOF testing. (#7227)
Add Genesis ("CancunEOFTime") and reference test ("CancunEOF") support
for a temporary Cancun+EOF fork, in anticipation of potential devnets.

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-06-25 14:36:42 +00:00
Justin Florentine
cfc3e76d65 update to work with the new max retries value (#7253)
Signed-off-by: Justin Florentine <justin+github@florentine.us>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-06-25 11:37:14 +10:00
daniellehrner
74780b8ef7 Fix flaky SECP256R1 test (#7249)
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-06-25 00:59:21 +00:00
leniram159
db33b03f8d Fix the wrong 'Identifier' and 'Synchronizer' usage (#7252)
* fix the synchronizer usage

Signed-off-by: Leni <leniram159@gmail.com>

* fix Identifier usage

Signed-off-by: Leni <leniram159@gmail.com>

---------

Signed-off-by: Leni <leniram159@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-06-24 19:13:33 -04:00
Danno Ferrin
7e840ab640 Reconfigure how Protocol Specs are created WRT EVM condiguration (#7245)
Make the max code size and max initcode size a part of the EVM
configuration. As part of the change we need to move the tasks
CodeFactory once handled as a static class and move it into the EVM.
This has a nice follow on effect that we don't need to pass in max EOF
versions or max code sizes anymore.

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-06-24 14:41:27 -06:00
Fabio Di Fabio
af80e53ad9 Update Docker base image to Ubuntu 24.04 (#7251)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-06-24 10:54:34 +00:00
Wolmin
a7fd80b531 feat: Add network option for LUKSO Mainnet (#7223)
* Add option for LUKSO network

Signed-off-by: Wolmin <lamonos123@gmail.com>

* Add tests for LUKSO

Signed-off-by: Wolmin <lamonos123@gmail.com>

* Apply spotless

Signed-off-by: Wolmin <lamonos123@gmail.com>

* Add changelog entry

Signed-off-by: Wolmin <lamonos123@gmail.com>

* Fix duplicate func

Signed-off-by: Wolmin <lamonos123@gmail.com>

* Fix changelog

Signed-off-by: Wolmin <lamonos123@gmail.com>

* Add bootnodes to genesis

Signed-off-by: Wolmin <lamonos123@gmail.com>

---------

Signed-off-by: Wolmin <lamonos123@gmail.com>
Signed-off-by: Wolmin <44748271+Wolmin@users.noreply.github.com>
2024-06-24 09:00:11 +00:00