* warm up to address at tx start if account is delegated, restrict auth nonce to 2**64-1
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* rename requestsRoot to requestsHash
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* return no code if account has delegated code to precompile, treat precompile always as warm account when resolving code
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* make accessListWarmAddresses generic again
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* warm delegatee account if transaction destination has delegated code
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* * verify auth nonce less than 2**64-1 during auth processing
* auth to zero address deletes delegation
* auth to precompile returns empty code
* auth nonce < 2**8
* increase auth base cost to 12500
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* generalised requests flat encoding and engine api changes
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* javadoc
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* get tests passing
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* get tests passing
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* clean code
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* change requests to single requestData for each requestType
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* fix PoWBlockCreatorTest after requests data type change
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* don't return request type in getPayload result
Signed-off-by: Jason Frame <jason.frame@consensys.net>
don't return request type in getPayload result
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* include requests in t8n response
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* update contract addresses for consolidation requests and withdrawal requests
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* fix requestHash calculation
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* Ensure that execution requests always return a response
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* added and fixed bound checks, fixed some compilation errors after the rebase
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* revert changes to evm tool spec tests
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* clean up
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* replace AbstractSystemCallRequestProcessor to concrete class and remove specific processors
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* spotless
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* update evmtool tests for 7685 changes
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* use empty requests hash prague fork at genesis
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* review suggestions
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* temporarily comment out osakaTime from Prague
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* engine API validation
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* update plugin API hash
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* fix GenesisStateTest
Signed-off-by: Jason Frame <jason.frame@consensys.net>
* comment out unused evmWorldUpdater.parentUpdater() check
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* added CodeDelegationProcessorTest
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* code clean up
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* spotless
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
---------
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Signed-off-by: Jason Frame <jason.frame@consensys.net>
Co-authored-by: Jason Frame <jason.frame@consensys.net>
* fix TransactionLocation in DefaultBlockchain unsafeImportBlock() and make some readability improvements
Signed-off-by: stefan.pingel@consensys.net <stefan.pingel@consensys.net>
* Upgrade to Promethus java client 1.x and adapt the code to the new version
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Update CHANGELOG.md
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
---------
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
* Consolidate all metric collectors into the metrics system
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Fixes
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Do not recreate the Prometheus metric system
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
---------
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* add optional worldstate move to debug_setHead
* make state rolling occur incrementally so as not to overwhelm memory and resources
Signed-off-by: garyschulte <garyschulte@gmail.com>
* Make timeout feature use vertx timer.
* Handle all errors resulting from timeout.
* Ensure that after the timeout occurs, we properly handle the response and don't allow the execution to continue.
---------
Signed-off-by: Ade Lucas <ade.lucas@consensys.net>
Signed-off-by: cloudspores <ade.lucas@consensys.net>
Co-authored-by: Ade Lucas <adelucas@gc950powy.lan>
Co-authored-by: Ade Lucas <adelucas@macbook-pro.lan>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
* don't try to import to an existing db
* deprecated task
* testutil subproject hit a sonar bug
---------
Signed-off-by: Justin Florentine <justin+github@florentine.us>
* 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>
* first draft for 7702 v2
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* change return value of DelegatedCodeGasCostHelper
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* fix upfront gas cost calculation, fix setting code multiple times in MutableDelegatedCodeAccount
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* fix gas refund for delegated code when account already exists, added gas cost deduction for code delegation resolution to ExtCodeSizeOperation
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* allow accounts with delegated code to send transactions
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* add refund for already existing account after nonce check
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* resolve delegated code only the first time to avoid delegation loops
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* handle invalid authorization signatures properly
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* refactored CodeDelegationProcessor to compute authorizer of a code delegation after the chain id check
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* fix canSetDelegatedCode method by checking code how it is in the trie and not the resolved code
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* optimize code hash calculation for empty code, fix check for empty code delegation list
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* check the all code delegation signatures hava a valid s value
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* rename encoder & decoder, handle invalid signature values in T8nExecutor
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* create the signatures for code delegation authorizations in T8nExecutor without checking if they are valid to test them later during the tx execution
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* check that recid is either 0 or 1
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* fixed acceptance tests, renamed the the remaining instances of set code to code delegation
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* fix delegate encoder & encoder unit tests
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* spotless
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* changed empty check for delegated accounts, fixed test
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* fix hasDelegatedCode method when code is null
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* run acceptance tests without deamon
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* disable CodeDelegationTransactionAcceptanceTest to check if it is causing the stuck ci pipeline
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* check if shouldTransferAllEthOfAuthorizerToSponsor is causing pipeline to stall
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* check if shouldCheckNonceAfterNonceIncreaseOfSender is causing pipeline to stall
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* check if closing the cluster after every test is causing pipeline to stall
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
* spotless
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
---------
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Co-authored-by: Danno Ferrin <danno@numisight.com>
* 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>
* 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>