Commit Graph

220 Commits

Author SHA1 Message Date
Simon Dudley
789542f76d Pull in Consensys/tuweni v2.7.0 (#8330)
This replaces io.tmio/tuweni with the Consensys fork.

Also Includes:
- reduce check argument args allocations - https://github.com/Consensys/tuweni/pull/10
which should reduce Integer and int[] and therefore gc pressure

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-03-17 19:42:25 +10:00
Matt Whitehead
47f455887a Add getBlockByHash to plugins API (#8413)
* Add getBlockByHash to plugins API

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

* Plugin hash

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>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-03-17 01:08:11 +00:00
Cristiano Aguzzi
72ac7bdbe4 [Follow up] Add Transaction Permissioning Hook to PermissioningService Interface (#8365)
* fixing the issue of implementing the permission service class in pr when it already exists
Signed-off-by: vaidikcode <vaidikbhardwaj00@gmail.com>

* wiring transaction filtering for Permissioning Plugins

* revert modify deprated code for TransactionSmartContractPermissioning

* Improve logging for AccountPermissioningController

Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Cristiano Aguzzi <relu91@users.noreply.github.com>

* Improve logging messages for AccountPermissioningController

* Allign AccountPermissioningControllerFactoryTest with the latest api

Signed-off-by: reluc <relu.cri@gmail.com>

---------

Signed-off-by: Vaidik <vaidikbhardwaj00@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: reluc <relu.cri@gmail.com>
Signed-off-by: Cristiano Aguzzi <relu91@users.noreply.github.com>
Co-authored-by: vaidikcode <vaidikbhardwaj00@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2025-03-12 07:41:09 +00:00
Sally MacFarlane
35d12070db Plugin API - add methods returning actual RPC host/port values (#8127)
* deprecate methods returning optionals since we know these will always have a value

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2025-03-12 05:52:25 +00:00
Gabriel-Trintinalia
f92780859d eth_simulateV1 - Fill gaps between block calls (#8375)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2025-03-06 04:13:51 +00:00
Fabio Di Fabio
428a638569 Allow plugins to propose transactions during block creation (#8268)
* Allow plugins to propose transactions during block creation

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

* Apply suggestions from code review

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

* Document AbstractStatefulTransactionSelector

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

* Unit tests for BlockSizeTransactionSelectorTest

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

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2025-02-12 15:59:59 +01:00
Gabriel-Trintinalia
72a4e4a0a3 Simulation - Expose BlockHashLookup to BlockSimulatorService (#8267)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2025-02-08 12:43:13 +11: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
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
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
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
Luis Pinto
74d22a082b Revert "Add back deprecated traceStartBlock methods to the tracer API (#8112)" (#8137)
This reverts commit 1f67cb511c.

Signed-off-by: Luis Pinto <luis.pinto@consensys.net>
2025-01-18 01:25:00 +00:00
Luis Pinto
1f67cb511c Add back deprecated traceStartBlock methods to the tracer API (#8112)
Signed-off-by: Luis Pinto <luis.pinto@consensys.net>
2025-01-13 16:21:56 +00:00
Gabriel-Trintinalia
4eb6fb07b7 Rename accountOverride to stateOverride to match spec (#8111)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2025-01-13 03:48:43 +00:00
Luis Pinto
8cddcfd955 Pass miningBeneficiary address to BlockAwareOperationTracer::traceStartBlock calls (#8096)
Signed-off-by: Luis Pinto <luis.pinto@consensys.net>
2025-01-10 11:37:12 +00:00
Simon Dudley
ffd593d72b Remove EIP-7742 (#8083)
This EIP was removed and equivalent functionality replaced by EIP-7840.

---

Revert "Rename targetBlobCount to targetBlobsPerBlock (#7981)"

This reverts commit 1671306749.

Revert "EIP-7742: Add target_blob_count to block header (#7808)"

This reverts commit f855d5b72f.

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-01-07 01:19:26 +00:00
Gabriel-Trintinalia
a03c98bf9e eth_simulateV1 - Add BlockSimulator feature (#7941)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-12-19 05:01:07 +00:00
Fabio Di Fabio
f8e93bf544 Support rpc pending block tag when estimating gas (#7951)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-12-06 12:50:38 +00:00
Simon Dudley
1671306749 Rename targetBlobCount to targetBlobsPerBlock (#7981)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2024-12-04 16:18:47 +10:00
Fabio Di Fabio
74929eb215 Revert "revert to unchanged plugin interface signature (#7938)" (#7977)
This reverts commit f08147acef.

# Conflicts:
#	plugin-api/build.gradle

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2024-12-03 19:13:10 +00:00
Sally MacFarlane
792c6569cd PoW mining - deprecation (#7905) 2024-11-29 05:09:15 +00:00
Sally MacFarlane
979ea5de74 [MINOR] (privacy deprecation) correct target to 24.12.0 (#7953) 2024-11-29 04:43:30 +00:00
Fabio Di Fabio
14dec7b775 Add histogram to metrics system (#7944)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-11-27 14:54:02 +00:00
Fabio Di Fabio
5b2da5a068 Migrate to Prometheus lib 1.x (#7880)
* 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>
2024-11-27 11:04:31 +00:00
Gabriel-Trintinalia
27592b5299 Expose start and stop synchronization to plugin aPI (#7940)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-11-26 23:08:17 +00:00
Justin Florentine
f08147acef revert to unchanged plugin interface signature (#7938)
Signed-off-by: jflo <justin+github@florentine.us>
2024-11-26 17:16:09 -05:00
Gabriel-Trintinalia
40648511cb Add mining service (#7913)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-11-25 01:59:14 +00:00
Sally MacFarlane
302999aa18 Privacy deprecation warnings on CLI (#7897)
* add deprecation notice to help descriptions for all privacy options

* log deprecation warning for privacy enabled options

* added @Deprecation annotations to privacy plugin classes

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-11-22 02:08:04 +00:00
Sally MacFarlane
55920e002a add Tx simulate method that accepts state override (#7892)
* move AccountOverrides into plugin datatypes; add simulate method that accepts this param

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-11-21 08:53:54 +10:00
Justin Florentine
c127f9c1d7 naming things is important (#7895)
BesuContext was not a helpful name for an interface that only manipulates services to be used by plugins.

---------

Signed-off-by: jflo <justin+github@florentine.us>
2024-11-20 22:23:49 +00:00
Fabio Di Fabio
fe462896d2 Add support for counter metric with external supplied value (#7894)
* Add support for counter metric with external supplied value

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

* Update CHANGELOG

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

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-11-20 18:42:36 +01:00
Fabio Di Fabio
02722bcd8a Consolidate all metric collectors into the metrics system (#7877)
* 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>
2024-11-19 16:10:03 +00: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
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
ee69279a94 Add getPendingTransactions to TransactionPoolService (#7813)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-10-27 23:40:33 +00: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
Matilda-Clerke
2169985ee2 7311: add peertask foundation code (#7628)
* 7311: Add PeerTask system for use in future PRs

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
2024-10-18 11:33:15 +10:00
Gabriel-Trintinalia
49bf37cc31 Expose chain ID in the BlockchainService plugin API (#7702)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2024-10-02 02:45:26 +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
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
Stefan Pingel
be8f4945b0 Metrics for sync phases (#7390)
* add metrics to measure the time for chain and world state sync

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: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-08-28 14:30:56 +00: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
Karim Taam
dff99f7c17 Implement getNearest methods (#7258)
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
2024-08-16 13:58:24 +01: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
Fabio Di Fabio
a7ab1773e4 In process RPC service (#7395)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-07-31 16:46:16 +00:00
Usman Saleem
9d92ae87df feat: Expose set finalized/safe block in plugin-api BlockchainService (#7382)
* feat: Expose set finalized and safe block in plugin-api BlockchainService
* check for poa network before setting finalized block
* changelog
* Add BlockchainService set finalized acceptance test

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-07-31 15:39:44 +00:00
Matilda-Clerke
9fe374a62b 5098 Branch 1: Groundwork for coming changes (#7398)
* 5098: Add RpcErrorTypes

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

* 5098: Modify InvalidJsonRpcParameters and InvalidJsonRpcRequestException, apply spotless

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

* 5098: Modify InvalidJsonRpcParameters and InvalidJsonRpcRequestException, apply spotless

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

* 5098: Add JsonRpcParameterException for later use

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

* 5098: Address review comments, apply spotless

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

* 5098: Update plugin-api gradle hash

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

* 5098: Add comment on INVALID_PARAMS_ERROR_CODE

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

* 5098: Apply spotless on latest changes

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

---------

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
2024-07-31 09:27:37 +10:00
Fabio Di Fabio
ab77523814 Move JsonRpcResponseType to RpcResponseType in the plugin API module (#7392)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-07-29 13:42:05 +02:00
Fabio Di Fabio
30dfa66c1e Penalize invalid transient pending transactions in the layered transaction pool (#7359)
* Introduce score for pending transactions

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

* Introduce score for pending transactions

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

* Update package javadoc

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

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2024-07-26 07:53:53 +10:00