6014 Commits

Author SHA1 Message Date
Simon Dudley
2680901cb9 Prague Engine API validation fixes (#8250)
- Prague newPayload validation fixes
- Testing the unsupported fork timestamp cases

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-02-06 02:02:29 +00:00
Simon Dudley
952deb79e9 Prague times for holesky and sepolia (#8255)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-02-06 11:11:40 +10:00
Jason Frame
b24ff90311 Remove PostMergeContext singleton (#8253)
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2025-02-06 00:24:28 +00:00
Fabio Di Fabio
271edbb97d Merge branch 'main' into zkbesu 2025-02-05 21:34:59 +01:00
Fabio Di Fabio
a81879370e Use PendingTransaction interface in block creation classes (#8254)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-02-05 21:31:09 +01:00
Gabriel-Trintinalia
630a8f7d0f EIP2935 - Use system call instead of direct storage modification (#8243)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2025-02-05 17:18:37 +10:00
Sally MacFarlane
1e5fb0051e update rpc gas cap default to 50M (#8251)
* update rpc gas cap default to 50M

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-02-05 14:32:06 +10:00
Sally MacFarlane
28dd49efaa [CHANGELOG] add upcoming breaking changes to unreleased (#8235)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-02-05 00:19:36 +00:00
Joshua Fernandes
8b45476112 Merge branch 'hyperledger:main' into zkbesu 2025-02-05 09:05:05 +10:00
Karim Taam
214673c026 Add transaction hash for debug trace responses (#8205)
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
2025-02-04 13:18:40 +00:00
phillip Yun
b74a7f2133 add Xchain-pruning-blocks-retained must be >= epochlength (#7963) (#8140)
Signed-off-by: philosup <philosup@gmail.com>
2025-02-04 10:19:45 +00:00
Fabio Di Fabio
ba66ba4b1f Merge branch 'main' into zkbesu 2025-02-04 10:54:31 +01:00
Fabio Di Fabio
90df5e5564 Not all invalid transient not selected txs should be penalized (#8231)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-02-04 09:52:34 +00:00
Sally MacFarlane
e006bbf62e [TESTING] disable flaky fast sync actions test (#8208)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-02-04 08:57:36 +00:00
Simon Dudley
cb5c223002 Use 9 for max blobs when sizing BlobCache (#8222)
Supports Pectra EIP-7691

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-02-04 08:21:04 +00:00
Simon Dudley
2924de01fe Invalidate engine_newPayloadV3 if it contains executionRequests (#8223)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-02-04 06:23:15 +00:00
Jason Frame
4dbb72330f Qbft block type (#8142)
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2025-02-04 05:40:40 +00: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
Sally MacFarlane
a2ef71b425 disable flaky test classes (#8239)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-02-04 14:33:23 +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
Fabio Di Fabio
1d875cfa0e Merge branch 'main' into zkbesu
# Conflicts:
#	.github/pull_request_template.md
#	.github/workflows/sonarcloud.yml
2025-02-03 14:15:40 +01:00
Fabio Di Fabio
24e2895355 Fix the simulation of txs with future nonce (#8215)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-02-03 14:01:18 +01:00
Fabio Di Fabio
4fa9f0c9c4 Add a tx selector to skip txs from the same sender after the first not selected (#8216)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-02-03 12:06:16 +00:00
Simon Dudley
a94f3766e1 Treat timestamp as unsigned long in engine api fork validation (#8221)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-02-03 06:06:50 +00:00
Simon Dudley
47a5efce8d EIP-7702 Skip CodeDelegation processing for invalid recid (#8212)
In CodeDelegation.authorizer(), return empty to skip code delegation processing if recId outside native lib's bounds

---------

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Co-authored-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Co-authored-by: Karim Taam <karim.t2am@gmail.com>
2025-02-03 04:44:13 +00:00
Matilda-Clerke
2412586d06 7582: Add naive RLP caching for BlockHeader, Transaction, and Withdrawal (#7988)
* 7582: Add naive RLP caching for BlockHeader, Transaction, and Withdrawal

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

* 7582: spotless

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

* 7582: Fix broken test after merge

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

* 7582: Back out withdrawal changes

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

* 7582: Fix up compile error after merge

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

* 7582: Apply naive RLP caching in transaction encoder/decoder classes

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

* 8053: Add RLPDecodingHelpers.Kind.EM
and handle empty lists in AbstractRLPInput

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

* 7582: Add trace logging to AbstractRLPInput

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

* Revert previous change, implement new fix

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

* Revert previous change, implement new fix

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

* 7582: Finish applying naive RLP caching to transaction encoder/decoder classes

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

* Remove unused LOG

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

* 7582: Make explicit the expectation that RLP.validate does not throw an exception in test

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

* 7582: SPOTLESS

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

* 7582: Remove redundant curly braces

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

* 7582: Remove Optional from rawRlp in Transaction.Builder

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

* 7582: Make new BlockHeader constructor private

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

* Refactor tranaction encoder classes

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

* Remove logging changes from RLP module

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

* spotless

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>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
2025-02-03 14:51:58 +11:00
Gabriel-Trintinalia
8d360a3d0e Simulation: Add state to StateOverride (eth_call, eth_simulateV1). (#8166)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2025-02-02 23:50:47 +00:00
Sally MacFarlane
6d51821614 [MINOR] add newline to beginning of PR template (#8210)
* add newline to beginning of PR template

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

* fix initial typo

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

* fix tx typos

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-02-02 23:23:19 +00:00
daniellehrner
56e5b3c6c2 Init KZG precompile contract before importing blocks (#8219)
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
2025-02-03 08:56:30 +10:00
Bhanu Pulluri
81e1ab9bf4 Round change upon f+1 RC messages (experimental option) (#7838)
* Fix incorrect duration for THREE_MINUTES from 1 minute to 3 minutes

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

* Round change upon f+1 RC messages (experimental option)

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

* Update besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java

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

* revert an unrelated fix already merged to main

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

* update return value description

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

* fix logging level for couple of logs

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

* Review changes , added tests

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

* Merge and fix controller builder test context

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

* minor fix to import missing class after merging main

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

* Add missing function header comments

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: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Jason Frame <jason.frame@consensys.net>
Co-authored-by: Matt Whitehead <matthew.whitehead@kaleido.io>
2025-01-31 16:41:19 +00:00
Sally MacFarlane
ac0265f3bd devnet-6 system contract addresses update (#8209)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-01-31 13:57:03 +00:00
daniellehrner
cf7d054c14 devnet-6: 7702 changes for EXTCODE* (#8169)
change EXTCODE* operations to match spec for Pectra devnet-6

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
2025-01-31 22:17:04 +10:00
Gabriel-Trintinalia
e98412697b Prague Devnet5 - EIP2935 - Fix edge case when the contract is deployed after the fork (#8211)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2025-01-31 06:19:47 +00: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
97a69b03c8 Devnet5 Fix requests tests (#8201)
* Fix hive tests for eip7685
* Pass correct empty request hash

Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>

---------

Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2025-01-31 05:11:52 +00:00
Brawn
57454cb7cf Fix: Remove System.out.println in BytesTrieSet… (#8172)
Signed-off-by: Brawn <nftdropped@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-01-31 04:06:33 +00:00
Simon Dudley
ccd3582630 Prague t8n and referenceTests fixes for EEST (#8167)
Fix referenceTests bug with fallback EMPTY Address.
T8n support for excessBlobGas for both state tests and blockchain test. State tests should use the given excessBlobGas rather than computing from the parent header.

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-01-30 07:08:08 +00:00
Sally MacFarlane
5ac3247d38 TransactionResult: add v for blob and pending tx (#8196)
* add v for blob and pending tx

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

* add v for blob and pending tx in tests

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

* add v for blob tx in test

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-01-30 16:11:00 +10:00
Danno Ferrin
6af23ea024 Improve BLOCKHASH Short Circuit (#8171)
* Improve BLOCKHASH Short Circuit
Signed-off-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2025-01-30 02:03:39 +00:00
Andrew Cheng
98bed38814 Reuse constant INVALID_PARAMS_ERROR_CODE for RpcErrorType.java (#8154)
Magic number "-32602" has been defined in the super interface, so reusing that constant value.

Signed-off-by: Andrew Cheng <andrewcheng1997@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-01-30 01:22:33 +00:00
Sally MacFarlane
0eaad3e375 add spotless to PR checklist (#8185)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-01-30 00:18:36 +00:00
Justin Florentine
e2318fbb81 fixes warning on sonar analysis (#8193)
Signed-off-by: jflo <justin+github@florentine.us>
2025-01-30 09:50:27 +10:00
Simon Dudley
4b8d93587e debug_traceBlock use existing block header instead of hash (#8184)
This means you don't need to have the block already in the chain when you call debug_traceBlock with a block's RLP (you just need the parent).

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-01-29 04:06:36 +00:00
Fabio Di Fabio
921c726922 Merge branch 'main' into zkbesu 2025-01-28 19:04:58 +01:00
Fabio Di Fabio
b5d507d659 Extend simulate transaction on pending block plugin API (#8174)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-01-28 19:03:59 +01:00
Karim Taam
b3192a5960 Refactor the methods for getting mutable states in the WorldState provider (#8113)
Refactor the methods for retrieving mutable states in the WorldState provider and make additional improvements to clean up the code.

---------

Signed-off-by: Karim Taam <karim.t2am@gmail.com>
2025-01-27 16:59:54 +00:00
Fabio Di Fabio
3485e296f3 Merge branch 'main' into zkbesu
# Conflicts:
#	.github/workflows/verify_artifacts.py
2025-01-27 15:29:49 +01:00
Karim Taam
846e4834b8 update eth_call error message (#8129)
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
2025-01-24 10:00:07 +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
Justin Florentine
09581eac20 Pectra testnet fork slots (#8163)
* adds Prague slot times

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

---------

Signed-off-by: jflo <justin+github@florentine.us>
2025-01-23 21:32:19 +00:00