Commit Graph

4476 Commits

Author SHA1 Message Date
Sally MacFarlane
c88820ffa8 docs: fix typo (#6029)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: vuittont60 <vuittontvuittont50@outlook.com>
2023-10-13 15:08:04 +10:00
Stefan Pingel
eeb60e5130 remove code duplication (#6028)
Signed-off-by: Stefan <stefan.pingel@consensys.net>
2023-10-13 04:29:43 +00:00
Fabio Di Fabio
e5c9f55f8b Force the use of jdk18 version of Bouncy Castle library (#5748)
This avoid that any dependency can include the jdk15 version in the distribution.
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-10-12 12:43:41 +02:00
Stefan Pingel
1c293fed97 Transaction Validation and Selection Plugin API update (#6020)
change Transaction Validation and Selection Plugin to make them more useful

Signed-off-by: Stefan <stefan.pingel@consensys.net>
Signed-off-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Co-authored-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-10-12 17:52:32 +10:00
Fabio Di Fabio
4276a40a64 Update 23.10.0 changelog (#6017)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-10-11 10:35:30 +02:00
Gabriel-Trintinalia
a56a35f1e0 [Plugin API] - TransactionSelector - Send TransactionSelectionResult to the plugin when not transaction is not selected (#6010)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-10-11 09:10:46 +11:00
Fabio Di Fabio
e946276d21 Use existing Bytes48 for KZGCommitment and KZGProof (#5997)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-10-10 21:39:32 +02:00
Fabio Di Fabio
9ec055caac Transaction detachedCopy to optimize txpool memory usage (#5985)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2023-10-10 15:00:39 -04:00
matkt
dc2289eada add method to disable root verification for T8n and not Reference tests (#6013)
* add method to disable root verification for T8n and not Reference tests

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
2023-10-10 10:06:13 -07:00
NC
0536a18bdc Base EIP-6110 on top of Cancun (#5752)
This is to base the existed implementation of EIP-6110 from Shanghai to Cancun. As well, it updates the implementation according to the latest Engine API specification.

Changes include:
-  Remove 6110 related changes from engine_newPayloadV2 and engine_getPayloadV2
-  Rename deposits to depositReceipts in EnginePayloadParameter
-  Introduce engine_newPayloadV6110 and engine_getPayloadV6110 that are based on engine_newPayloadV3 and engine_getPayloadV3
-  Revamp the existed 6110 acceptance test

---

Signed-off-by: Navie Chan <naviechan@gmail.com>
Signed-off-by: naviechan <adrninistrator1@protonmail.com>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2023-10-10 07:32:40 +02:00
Gabriel-Trintinalia
e8a0428a27 [Plugin API] - TransactionSelector - Notify plugins when transaction is selected/rejected (#6005)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-10-10 13:02:41 +11:00
Danno Ferrin
573cb1bc43 Change Array Copying (#5998)
* Change Array Copying

Change array copying by re-using arrays when safe.

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

* spotless

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

* different bigint API

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

* straddle case

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

* less stack traces

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

* spotless

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

---------

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2023-10-09 11:25:19 +02:00
Gabriel-Trintinalia
4b822d6739 [Plugin API] - Simplify plugin transaction selector interface to return object instead of list (#5995)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-10-09 09:48:06 +11:00
Danno Ferrin
0b83ab5011 Tests for GraphQL Cancun fields (#5975)
* Tests for GraphQL Cancun fields

Add tests for GraphQL fields added to support cancun.
Also, re-work test case inclusion code and update tests impacted by
adding a new block to the chain.

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

* unneeded deltas in genesis file

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

---------

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-10-06 14:48:30 +10:00
Sally MacFarlane
d97a93e310 add plugins summary (#5964)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-10-06 10:53:39 +10:00
Justin Florentine
fddcdf31eb hive tests explicitly attempt zero (#5993)
Signed-off-by: Justin Florentine <justin+github@florentine.us>
2023-10-05 18:04:56 -04:00
Fabio Di Fabio
62159dc55d Bump version to 23.10.1-SNAPSHOT (#5990)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-10-05 16:02:42 +02:00
Fabio Di Fabio
e4f3b1751c Only use the builder to create transactions (#5980)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-10-05 10:17:09 +02:00
Gabriel-Trintinalia
71bc57494d Plugin Api - Add evaluateTransactionPostProcessing to TransactionSelector interface (#5988)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-10-05 17:33:41 +11:00
Gabriel-Trintinalia
2dd16f4d07 [4844] EngineNewPayload - Add Blob Count validation (#5973)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-10-05 14:42:29 +11:00
Justin Florentine
e4337226ac Validation ordering (#5986)
* re-ordering error reporting priority
* fixes fork checking on getPayload
* adds acceptance test reproducing an issue where built blocks have proofs > txs
* test coverage and fix for subtle re-org bug prior to proposals
---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2023-10-04 19:39:41 -07:00
Danno Ferrin
13a934d6b8 Add parameters to EVM library fluent API (#5930)
Add the ability to configure more parameters in the fluent API.
Specifically contract address, coinbase, difficulty, mixHash/prevRandao,
baseFee, block number, timestamp, gas limit, previous block hashes, and
versioned hashes. Also create EVM forks parametrically instead of by 
a method name.

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2023-10-04 19:35:36 -06:00
Gabriel-Trintinalia
10b956f75f Expose getSize to transaction interface (#5983)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-10-04 19:18:49 +11:00
Fabio Di Fabio
7ee5b736f3 Target to use about 25MB for the new layered txpool by default (#5974)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-10-03 20:15:31 +02:00
Fabio Di Fabio
987d33c63a Use PendingTransaction in BlockTransactionSelector (#5966)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-10-02 10:41:21 +02:00
Danno Ferrin
dc47867054 Fix t8n encoding issue (#5936)
When sending a stack in json fields strip out the newlines and tabs.

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2023-09-30 00:26:12 -05:00
Shritesh Jamulkar
e7311f044a Added toString implementation for TransactionSimulatorResult (#5957)
Signed-off-by: Shritesh <shritesh.sj@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-09-29 11:36:50 +10:00
garyschulte
993a6d8c7e Optionally bypass state root verification in reference test worldstate (#5960)
* bypass state root verification in reference test worldstate if it is undefined/zero

Signed-off-by: garyschulte <garyschulte@gmail.com>
2023-09-28 08:46:35 -07:00
Gabriel-Trintinalia
00853c2fcf Validate bad block before new head check syncing (#5967)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-09-28 08:27:47 -04:00
Danno Ferrin
4f49ec9418 Add Cancun GraphQL fields (#5923)
Add the fields for Blobs into the GraphQL service.

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2023-09-27 23:21:08 -06:00
Sally MacFarlane
8980835398 Update execution tests to 0.2.5 (#5952)
* 0.2.4

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

* 0.2.5

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

* removed older versions of execution-tests metadata

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-09-28 13:53:32 +10:00
Justin Florentine
ef2d4181d8 Apply fcu even on invalid payload (#5961)
* payload validation moved earlier, fcu v2 checks for cancun timestamps
* allow fcu when payload invalid
---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2023-09-28 13:05:31 +10:00
Gabriel-Trintinalia
c4f66c4758 BlockTransactionSelector refactoring (#5931)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-09-28 10:33:44 +10:00
Fabio Di Fabio
8200e9802b Always enforce promotion filter for transactions in the prioritized layer (#5921)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-09-27 13:11:48 +02:00
Fabio Di Fabio
5d344addad Improve performance when promoting transaction from next layers (#5920)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-09-27 19:47:51 +10:00
Gabriel-Trintinalia
b9f005ea9a rlpx - Send empty list instead of Empty Bytes for the Ping and Pong message (#5955)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-09-27 19:10:16 +10:00
Fabio Di Fabio
109bb4df29 Process onBlockAdded event asyncronously (#5909)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-09-27 10:33:01 +02:00
Fabio Di Fabio
84023d8a7a Transaction pool unit tests refactoring to remove duplications (#5948)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2023-09-27 09:48:27 +02:00
Simon Dudley
b912780cc3 Fixup changelog following 23.7.3 release (#5954)
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2023-09-27 17:06:45 +10:00
Justin Florentine
41e829be9d Forkchoice v2 hive tests (#5949)
* payload validation moved earlier, fcu v2 checks for cancun timestamps

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

* payload validation moved earlier, fcu v2 checks for cancun timestamps

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

* build passes

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

---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2023-09-27 10:39:13 +10:00
Sally MacFarlane
3afd3ca27e updated beacon root and modulus to match DRAFT eip (#5941)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-09-26 11:43:23 -04:00
Gabriel-Trintinalia
387d3f2d24 [4844] [Hive] Fix fcuV3 parameter return (#5940)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-09-26 13:50:21 +10:00
Justin Florentine
d7a831e7aa adds Matthew Whitehead as a maintainer (#5876)
* adds Matthew Whitehead as a maintainer

* alphabetizes list by github id

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

---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-09-26 11:21:20 +10:00
Sally MacFarlane
77b34f5d4f renamed PayloadTuple and made a separate class (#5916)
* renamed PayloadTuple and made a separate class 

* made a record

* refactor tests to use PayloadWrapper

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

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-09-26 10:35:14 +10:00
Stefan Pingel
1c261db30f add plugin API to enable plugins to validate transaction before they are added to the transaction pool (#5891)
* add plugin API to enable plugins to validate transaction before they are added to the transaction pool

Signed-off-by: Stefan <stefan.pingel@consensys.net>

* updated plugin version

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

---------

Signed-off-by: Stefan <stefan.pingel@consensys.net>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-09-25 10:13:07 +10:00
matkt
52795b6223 add get proof for bonsai (#5919)
* add get proof for bonsai

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

* fix review

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

* remove logs

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

---------

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
2023-09-25 09:25:30 +10:00
garyschulte
d81e1f3042 Add FlatDbStrategy (#5901)
* move FlatDbReader to FlatDbStrategy (including writes), add getNearestTo

Signed-off-by: garyschulte <garyschulte@gmail.com>
2023-09-22 10:51:39 -07:00
Gabriel-Trintinalia
9d7ee2b52b [4844] Fix some Devnet9 Hive tests (#5929)
* Return latest valid hash for blob validation
* Fix invalid hash
* Fix null hash
* Change HISTORY_BUFFER_LENGTH
---------

Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2023-09-22 08:56:22 -04:00
Stefan Pingel
5830936583 fix geth rlpx ping command (#5917)
* fix geth rlpx ping command

Signed-off-by: Stefan <stefan.pingel@consensys.net>

---------

Signed-off-by: Stefan <stefan.pingel@consensys.net>
2023-09-22 15:03:59 +10:00
Sally MacFarlane
c9489a4998 update beacon root again [skip ci] (#5903)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2023-09-21 14:35:01 -04:00