Fabio Di Fabio
8b46caf019
Memoize transaction size and hash at the same time ( #4812 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2 years ago
Zhenyang Shi
d6fbe02622
Use blocking executor in test ( #4832 )
...
Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
2 years ago
Jiri Peinlich
3fd0681e3d
Support timestamp forks and implement shanghaiTime ( #4743 )
...
Implement shanghaiTime including TimestampSchedule and associated infrastructure code.
TimestampSchedule sits alongside the pre and post ProtocolSchedules in TransitionProtocolSchedule.
Introduces getByTimestamp, wrapped inside getByBlockHeader (to also support getByBlockNumber).
General call pattern followed is that if a given timestamp precedes the first timestamp in the schedule, i.e. a pre-shanghai block, then delegate to the appropriate pre or post merge ProtocolSchedule to get by block instead.
cancunTime and a placeholder cancunDefinition has also been implemented in order to effectively test fork order logic.
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Jason Frame <jason.frame@consensys.net>
2 years ago
Jason Frame
2b9956a328
Add download sha sums for 22.10.3 release ( #4827 )
...
Signed-off-by: Jason Frame <jason.frame@consensys.net>
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2 years ago
Jason Frame
b29cc88e46
Fix docker release workflow login ( #4826 )
...
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2 years ago
Jason Frame
1c59bdc7d8
Docker release task for latest tags ( #4810 )
...
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2 years ago
Gabriel-Trintinalia
4cf6c38e76
Add accessList field to Transaction Call Object ( #4802 )
...
Signed-off-by: Gabriel Trintinalia gabriel.trintinalia@gmail.com
2 years ago
Zhenyang Shi
97588ae744
Add chain data pruning experimental feature ( #4686 )
...
* Add chain pruner
* Increase minimum blocks to retain
* Skip ancestor check in pruning mode
* Separate class for pruning storage
* Move pruning to separate thread
* Limit total pruning threads
Signed-off-by: wcgcyx <wcgcyx@gmail.com>
Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com>
Co-authored-by: Simon Dudley <simon.l.dudley@hotmail.com>
Co-authored-by: Jason Frame <jason.frame@consensys.net>
2 years ago
kevaundray
f3b7db1580
Update Element.java ( #4804 )
...
Signed-off-by: kevaundray <kevtheappdev@gmail.com>
Signed-off-by: kevaundray <kevtheappdev@gmail.com>
Co-authored-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
2 years ago
Gabriel-Trintinalia
bd964ed3f5
Fix typo ( #4803 )
...
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2 years ago
Sally MacFarlane
bedecbed76
Runner test refactor ( #4798 )
...
* refactoring
* don't build the aheadController twice
* added a peer count step to check peering
* use non-deprecated RequestBody.create()
* removed jetbrains annotation
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2 years ago
Antoine Toulme
f9bc1b76e4
add bandersnatch point ( #4647 )
...
* add bandersnatch point
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* fix build
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* fix build
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* fix build
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* fix build
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* spotless
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* comment test
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* Update ethereum/verkletrie/src/main/java/org/hyperledger/besu/ethereum/verkletrie/bandersnatch/fp/Element.java
Co-authored-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Co-authored-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
2 years ago
Jason Frame
9006445147
Prepare for version 22.10.4-SNAPSHOT ( #4800 )
...
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2 years ago
Jason Frame
5161b613a0
Release 22.10.3 ( #4799 )
...
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2 years ago
Jason Frame
1205e3a6f0
Docker release builds to no longer add latest tag ( #4791 )
...
Signed-off-by: Jason Frame <jason.frame@consensys.net>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2 years ago
Danno Ferrin
19077be0a1
Set default curve in EVMTool ( #4790 )
...
Set default EC curve when starting up EVMTool.
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2 years ago
lukelee-sl
609904e509
gradle modifications to support java 19 ( #4797 )
...
* gradle modifications to support java 19
Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Co-authored-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2 years ago
Gabriel-Trintinalia
72387a5b8c
Hidden option to enforce maximum or minimum eth capability ( #4752 )
2 years ago
Jason Frame
efa0a759a3
Add Gabriel Fukushima as a maintainer ( #4750 )
...
Signed-off-by: Jason Frame <jason.frame@consensys.net>
2 years ago
Danno Ferrin
89ce75a614
Speedup modexp ( #4780 )
...
Increate the speed of ModExp gas calculations by using primitive types.
Use a native lib for modexp precompile.
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
* Native modexp
2 years ago
Sally MacFarlane
4120501e5f
Moved besu docs devs to emeritus ( #4782 )
...
* emeritus
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Nicolas MASSART <NicolasMassart@users.noreply.github.com>
2 years ago
Gabriel-Trintinalia
c9fba126e6
Implement eth/68 (EIP-5793) ( #4730 )
2 years ago
Gabriel-Trintinalia
64a5d7421a
Fix storage key format for eth_getProof ( #4564 )
2 years ago
mark-terry
27257e64ba
Changed chain download error log level from error to debug. ( #4775 )
...
Signed-off-by: mark-terry <mark.terry@consensys.net>
2 years ago
mark-terry
6973a07b72
Added max range CLI option for eth_getLogs. ( #4597 )
...
* Added max range CLI option for eth_getLogs. Default value: 1000.
Signed-off-by: mark-terry <mark.terry@consensys.net>
Signed-off-by: mark-terry <36909937+mark-terry@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2 years ago
garyschulte
01fcb42edd
Prepare for version 22.10.3-SNAPSHOT ( #4773 )
...
* Update version to 22.10.3-SNAPSHOT
Signed-off-by: garyschulte <garyschulte@gmail.com>
* update changelog for 22.10.3
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
2 years ago
garyschulte
ebd8c70bf7
22.10.2 release ( #4772 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
2 years ago
garyschulte
e40def3a25
subscribe prior to getting stateTrieNode in cacheStorageNodes ( #4771 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
2 years ago
garyschulte
27412b4b2b
prep changelog for 22.10.2 ( #4769 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
2 years ago
ahamlat
2b4e5653bd
Ensure that Snashot worldstates remain open for async operations ( #4767 )
...
* Fix segfault on async operations on closed snapshot worldstate
Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
Co-authored-by: matkt <t2am.karim@gmail.com>
Co-authored-by: garyschulte <garyschulte@gmail.com>
2 years ago
Diego López León
fe92b24908
Set PUSH0 as valid opcode for EOF1 validation ( #4733 )
...
Signed-off-by: Diego López León <dieguitoll@gmail.com>
Signed-off-by: Diego López León <dieguitoll@gmail.com>
Signed-off-by: Diego López León <dieguitoll@gmail.com>
Signed-off-by: Diego López León <dieguitoll@gmail.com>
2 years ago
Justin Traglia
b1f5a7df36
Use value comparisons instead of reference comparisons in some places ( #4757 )
...
Signed-off-by: Justin Traglia <jtraglia@pm.me>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2 years ago
Simon Dudley
24e9fe24de
Print the rpc params as serialized json to make it easier to copy-paste requests when debugging ( #4753 )
...
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2 years ago
Simon Dudley
5b55a7e6f2
Add log to show when we've found a peer on a matching chain id ( #4751 )
...
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2 years ago
garyschulte
39be2e6485
Prepare for version 22.10.2-SNAPSHOT ( #4762 )
...
* Update version to 22.10.2-SNAPSHOT
* add download links
Signed-off-by: garyschulte <garyschulte@gmail.com>
2 years ago
garyschulte
71148c1225
22.10.1 release ( #4761 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
2 years ago
Diego López León
e5872a5664
[Shandong] EIP-3860 support ( #4726 )
...
* Add Shandong gas calculator to support EIP-3860
Signed-off-by: Diego López León <dieguitoll@gmail.com>
Signed-off-by: Diego López León <dieguitoll@gmail.com>
* add unit tests for Shandong gas calculator
Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
Signed-off-by: Diego López León <dieguitoll@gmail.com>
Signed-off-by: Diego López León <dieguitoll@gmail.com>
Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
Co-authored-by: lukelee-sl <luke.lee@swirldslabs.com>
2 years ago
matkt
fae615fcb8
Preload state trie node ( #4737 )
...
The idea behind this commit is to preload asynchronously account nodes and storage nodes from the database during the transaction processing to use these nodes during the calculate root hash step.
We've created two caches, one for account nodes and one for storage nodes. The size of these caches is 100k for accounts and 200k for storage. We've tested other values but this configuration is the one that works better.
We also use exporter cache metrics as Prometheus metrics to check cache efficiency.
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Co-authored-by: Ameziane H <ameziane.hamlat@consensys.net>
2 years ago
Fabio Di Fabio
2c5d7728ca
Transaction pool price validation improvements and fixes ( #4598 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2 years ago
Gabriel-Trintinalia
67f38bf690
Possible optimization ( #4701 )
2 years ago
Danno Ferrin
0a6dcea436
Mul speedup ( #4756 )
...
Move mul from UInt256 wrapping to direct BigInteger math.
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2 years ago
Sally MacFarlane
7994265325
update tuweni ( #4749 )
...
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2 years ago
Gabriel Fukushima
d5a18433e6
Removing deprecated method ( #4741 )
...
* Replace deprecated method
* Ignore field
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
2 years ago
Bakuchi
d2382c6b2b
fix typo in error message. ( #4736 )
...
Signed-off-by: Bakuchi <49754494+massun-onibakuchi@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2 years ago
Gabriel-Trintinalia
f83d7e1a40
Fix attempt to send unsupported message (13) via cap eth/67 ( #4732 )
2 years ago
Fabio Di Fabio
2ee204cb77
Do not send new payloads to backward sync if initial sync is in progress ( #4720 )
...
* Do not involve backward sync until initial sync is done
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2 years ago
Fabio Di Fabio
9d4ec3bca4
Restore updating chain head and finalized block during backward sync ( #4718 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2 years ago
Zhenyang Shi
951153d8ee
[2702] Add check for required option on cli ( #4717 )
...
* Add check for required option on cli
Signed-off-by: wcgcyx <wcgcyx@gmail.com>
Co-authored-by: Jason Frame <jason.frame@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2 years ago
Diego López León
54294fe132
Update Shandong bootnodes ( #4728 )
...
Signed-off-by: Diego López León <dieguitoll@gmail.com>
2 years ago
Danno Ferrin
58b121bd23
Treat nonces as quantities ( #4722 )
...
Change nonce hex parsing to be treated as encoded longs, not trimmed
byte arrays.
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2 years ago