1117 Commits

Author SHA1 Message Date
Wolmin
6fc75c000f feat: LUKSO Cancun Hardfork (#7686)
* Edit cancun timestamp

Signed-off-by: Wolmin <lamonos123@gmail.com>
2024-09-30 10:37:59 +00:00
Fabio Di Fabio
f9695c18c0 Interrupt candidate tx execution on block creation timeout (#7673)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-27 18:42:42 +00:00
amsmota
aed6bb0044 Implementing support for emptyBlockPeriodSeconds in QBFT (Issue #3810) (#6965)
Implemented support for emptyBlockPeriodSeconds in QBFT (Issue #3810)

Introduces experimental xemptyblockperiodseconds genesis config option for producing empty blocks at a specific interval independently of the value of the existing blockperiodseconds setting.

https://github.com/hyperledger/besu/issues/3810

---------

Signed-off-by: Antonio Mota <antonio.mota@citi.com>
Signed-off-by: amsmota <amsmota@gmail.com>
2024-09-24 11:35:08 +00: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
Glory Agatevure
04ba15aa92 Add consolidationRequestContract in jsonGenesisConfig (#7647)
* Include consolidationRequestContract in jsonGenesisConfigOptions

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

* Update changelog and ran spotlessApply

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

* Rename consolidationRequestPredeployAddress to consolidationRequestContractAddress

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

* Create request contract addresses class

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

* Update method calls

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

* Refactor RequestContractAddresses class and update method calls and test

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

---------

Signed-off-by: gconnect <agatevureglory@gmail.com>
Co-authored-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-09-24 15:06:16 +10:00
Fabio Di Fabio
3e0e5cdc1f Fix reading tx-pool-min-score option from configuration file (#7623)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-20 15:11:56 +00:00
Matt Whitehead
e721237c26 Don't persist IBFT2 proposal blocks, just validate them (#7631)
* Don't persist IBFT2 proposal blocks, just validate them

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

* Tidy up changelog

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-09-20 09:38:57 +01:00
Suyash Nayan
beaee59212 Add BlobMetrics (#7622)
* Add BlobMetrics

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

* refactor

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

* remove unused blob_storage

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

* add .size() to BlobCache

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

* Add to Changelog

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

---------

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>
Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-19 14:57:06 +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
Bhanu Pulluri
0d9fa16a1f [#4292] Fix mounted data path directory permissions for besu user (#7575)
* Fix mounted data path directory permissions for besu user

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

* Add besu CLI option to output dirs needing permission update

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

* run spotless apply to handle PR test failure

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

* Remove newly added --print-paths-and-exit option from config file test

This option doesn't have a corresponding config file entry as it's a
standalone option to be used with docker containers

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

* Add optional user argument to --print-paths-and-exit and fix directory permissions

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

* Correct build.gradle changes, remove a duplicate line and extra whitespaces

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

* Fix checking for user in path's group membership

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

* Add platform check to restrict --print-paths-and-exit option usage to Linux and Mac

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

* Apply suggestions from code review

Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Bhanu Pulluri <59369753+pullurib@users.noreply.github.com>

---------

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: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-18 09:35:00 +00:00
Sally MacFarlane
89dfa95860 [CHANGELOG] upcoming breaking change for k8s nat (#7534)
* upcoming breaking change for k8s nat
* log warning if deprecated NAT method used

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-09-16 13:26:14 +10:00
Suyash Nayan
5df2a71a4d Fix debug_traceCall to handle underpriced transactions (#7510)
* Fix debug_traceCall to handle underpriced transactions

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

* remove unused methods

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

* Add test case and changelog entry for debug_traceCall fix

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

---------

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-13 13:35:34 +00:00
Luis Pinto
e0cd5084c7 Change test to tease NPEs during DefaultBlockchain.<init>() caused by initilization order (#7607)
* Change test to tease NPEs during DefaultBlockchain.<init>() caused by initilization order
* fixup! Change test to tease NPEs during DefaultBlockchain.<init>() caused by initilization order
* move counters into their own method

Signed-off-by: Luis Pinto <luis.pinto@consensys.net>
2024-09-12 13:56:54 +02: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
garyschulte
b18d15058f deprecate 24.9.0, create 24.9.1 release (#7606)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-09-11 13:01:21 -04:00
Stefan Pingel
2a52b0278b remove character accidentally added in CHANGELOG (#7586)
Signed-off-by: stefan.pingel@consensys.net <stefan.pingel@consensys.net>
2024-09-09 03:47:20 +00:00
Stefan Pingel
cf592c48d1 implement engine_getBlobsV1 (#7553)
* implement engine_getBlobsV1

Signed-off-by: stefan.pingel@consensys.net <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-09-06 09:37:36 +02:00
Fabio Di Fabio
f0d2a665d7 Remove tx from pool when its score is lower than a configured value (#7576)
* Remove tx from pool when its score is lower than a configured value

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

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

Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

* Check for below min score after the penalization

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

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
2024-09-05 15:08:20 +00:00
Fabio Di Fabio
dad05d407e Honor block number or tag parameter in eth_estimateGas and eth_createAccessList (#7502)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-05 16:25:46 +02:00
Fabio Di Fabio
dc6324c8d0 Layered txpool: fix for unsent drop notifications on remove (#7538)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-05 15:54:12 +02: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
Fabio Di Fabio
7f0982d228 Layered txpool: do not send notifications when moving tx between layers (#7539)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-05 10:55:32 +00:00
garyschulte
2881994f0f update changelog to reflect 24.9.0-RC2 (#7574)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-09-04 18:31:26 +02:00
Sally MacFarlane
ffd23e122d [CHANGELOG] remove docs updates from changelog (#7562)
* remove docs updates from changelog
* add changelog entry

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-09-04 01:56:30 +00:00
Danno Ferrin
65240fdf46 Plumb maxCode overriddes into EVM (#7557)
* Plumb maxCode overriddes into EVM

Restore lost functionality: the maxcodesize and maxinitcodesize should
be plumed into the operations and validation rules when set.

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-02 22:06:19 +00:00
Fabio Di Fabio
e1dd400aa5 Include current chain head block when computing eth_maxPriorityFeePerGas (#7485)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-09-02 10:12:31 +00:00
garyschulte
2339c1df20 changelog for 24.9.0 (#7550)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-08-30 15:33:06 -07:00
Matilda-Clerke
da98fa5541 Reintroduce engine get client version v1 with commit in manifest (#7548)
* Include Commit-Hash in manifests
* Add commit method in BesuInfo
* Use 8 character hash in EngineGetClientVersionV1 and revert calculateVersion back to original spec

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
Co-authored-by: garyschulte <garyschulte@gmail.com>
2024-08-30 18:13:53 +00:00
Matilda-Clerke
1ea1d4cede Revert engine getclientversionv1 changes (#7546)
* Revert "Check for commit hash before appending another in build.gradle caclulateVersion (#7537)"

This reverts commit a8bbcd5d8b.

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

* Revert engine_getClientVersionV1 changes

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

---------

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
2024-08-30 06:01:43 +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
Rodion
03cdd45916 Drop messages that exceeds local message size limit (#7507)
Signed-off-by: Rodion Lim <rodion.lim@hotmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-08-29 06:09:01 +00:00
garyschulte
8ae0db4b24 Check for infinity in eip-196 ecmul (#7509)
* check for infinity before calling out to jni for ecmul
* some changelog clean-up

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-08-28 19:43:23 +00:00
Matilda-Clerke
e0aa4f6d4a add engine_getClientVersionV1 (#7512)
* add engine_getClientVersionV1

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
2024-08-27 04:49:12 +00:00
Danno Ferrin
a851507cb3 evmtool was not respecting the --genesis option (#7518)
* EVMTool should respect --genesis option

Update the code so that the genesis file option will be respected when
set. Also, default --fork options should set a rational base fee.

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

---------

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-08-26 14:33:05 +10:00
shubham kesri
4801106674 Fixed | Initialising the encodedPubKey with empty String in case userInfo is null (#7508)
Signed-off-by: kesrishubham2510 <shubhamkeshari90@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-08-23 00:42:12 +00:00
Ade Lucas
c3f455c691 Fix ClassCastException in DebugMetrics nested structures [#7383] (#7499)
* Fix ClassCastException in DebugMetrics nested structures

This commit resolves an issue where Double values in nested metric
structures were incorrectly cast to Map objects, causing a
ClassCastException. The fix allows for proper handling of both
direct values and nested structures at the same level.

A comprehensive test case has been added to reproduce the bug and
verify the fix, ensuring that complex, dynamically nested metric
structures can be handled without errors.

Resolves: #7383

Signed-off-by: Ade Lucas <ade.lucas@consensys.net>

---------

Signed-off-by: Ade Lucas <ade.lucas@consensys.net>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: Snazzy <snazzysam933@gmail.com>
Signed-off-by: Danno Ferrin <danno@numisight.com>
Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
Signed-off-by: Matilda-Clerke <matilda.clerke@consensys.net>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: garyschulte <garyschulte@gmail.com>
Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: gringsam <snazzysam933@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Matilda-Clerke <matilda.clerke@consensys.net>
2024-08-23 10:06:03 +10:00
Simon Dudley
5b8764d648 Add new lodestar bootnode for holesky (#7500)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2024-08-21 16:27:21 +10:00
Fabio Di Fabio
19e1a9aaf6 Add pending block header to TransactionEvaluationContext (#7483)
Add pending block header to TransactionEvaluationContext plugin API, so PluginTransactionSelector can access info of the pending block.

---
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Usman Saleem <usman@usmans.info>
2024-08-20 09:50:26 +10:00
Fabio Di Fabio
0dffe63c13 Fix BlockchainQueries::gasPrice when chain head block body still not fully persisted (#7482)
* Fix BlockchainQueries::gasPrice when chain head block body still not fully persisted

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-08-19 15:20:47 +02:00
Jason Frame
4acd7f120c Change default for receipt compaction to be enabled (#7450)
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2024-08-19 05:09:38 +00:00
garyschulte
f50f7c09d8 Bump changelog ahead of 24.8.0 (#7476)
* bump changelog

Signed-off-by: garyschulte <garyschulte@gmail.com>
2024-08-17 00:03:07 +00:00
Fabio Di Fabio
12576d7705 Correctly release txpool save and restore lock in case of exceptions (#7473)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-08-16 20:06:53 +00:00
Suyash Nayan
b2b55a54fb Add 'inbound' field to admin_peers JSON-RPC Call (#7461)
* Add 'inbound' field to admin_peers JSON-RPC Call

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

* added changelog entry

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

---------

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-08-16 00:37:19 +00:00
Luis Pinto
b99cdf6273 Precompile calls were not traced when insuficient gas (#7462)
* Precompile calls were not traced when insuficient gas

Signed-off-by: Luis Pinto <luis.pinto@consensys.net>

* fixup! Precompile calls were not traced when insuficient gas

 revert RuntimeException in StateDiffGenerator

Signed-off-by: Luis Pinto <luis.pinto@consensys.net>

---------

Signed-off-by: Luis Pinto <luis.pinto@consensys.net>
2024-08-14 16:54:13 +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
Nischal Sharma
50f8add052 Tracing private transactions feature (#6161)
* add private tx tracing feature

Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-08-13 04:52:53 +00:00
daniellehrner
b53db47dab Wrapped WorldUpdater into EVMWorldupdater (#7434)
* wrapped WorldUpdater into `EVMWorldupdater` to remove the authority code injection from the implementation of the actual world updaters

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

* add CHANGELOG entry

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

---------

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-08-12 21:28:06 +00:00
daniellehrner
2158a68296 Fix protocol schedule for devnets (#7429)
* add `ProtocolSchedule::milestoneFor` to retrieve milestones for every hardfork in the genesis file
* add `setMilestones` and `milestoneFor` to TransitionProtocolSchedule
* refactored all checks for hardforks in the engine API to use hard fork ids
* added tests to test that the engine API v2 endpoints return UNSUPPORTED_FORK past Cancun

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

---------

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-08-12 19:38:59 +10:00
Lucas Saldanha
745d353027 Restore previous behaviour for preMergeBesuControllerBuilder (#7431) 2024-08-09 09:41:07 +12:00
Danno Ferrin
a92fdbb44c EVMTool Docker Support (#7430)
A few fixes that re-enable docker support for evm tool
* evmtool is the entrypoint
* turn off some noisy logging
* ensure EOF respects the create flag

Signed-off-by: Danno Ferrin <danno@numisight.com>
2024-08-06 18:37:29 -06:00