Danno Ferrin
af011d2a0f
Use Bytes Trie to track warm addresses ( #6069 )
...
* Use Bytes Trie to track warm addresses
Move from a java HashSet to a custom Trie based on bytes to store the
warm addresses, creates, and self-destructs.
This avoids needing to calculate java hashes or engage in using custom
Comparators.
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
* codeql scan
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
---------
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
Gabriel-Trintinalia
3310c416bd
Implement miner_setMinPriorityFee and miner_getMinPriorityFee ( #6080 )
...
* Refactor mining options
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Fix null pointer exception
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* fix another null pointer exception
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* uncomment code
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Move miner options tests
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Unit test fixes
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Removed the commented code
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* WIP
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* WIP
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* New miner option: min-priority-fee
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Remove not relevant for this feature
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Remove not relevant for this feature
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Fix javadoc
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Remove code not belonging to this PR
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* coinbase is an updatable parameter
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Move MiningOptions to upper package
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Fix coinbase for *bft
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Implement methods to get and set min priority fee
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
* Fix spotless
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
* Apply suggestions from code review
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Update besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java
[skip-ci]
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
* Add new config option to everything config
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
* Fix unit test
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
* Accept PR suggestions
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
---------
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
1 year ago
Simon Dudley
20f518ed43
Decouple TrieLogManager and CachedWorldStorageManager ( #6072 )
...
Separate out the concepts of world state caching and trie log management.
Remove AbstractTrieLogManager and make TrieLogManager the concrete implementation.
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
1 year ago
Suyash Nayan
a2dbb8272c
Optimize GetPooledTransactionsFromPeerTask with HashSet ( #6071 )
...
Switch from using a List to a HashSet for transaction hashes in GetPooledTransactionsFromPeerTask to improve performance.
Signed-off-by: Suyash Nayan <suyashnyn1@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
Danno Ferrin
909649f26c
Update reference tests to Cancun ( #6054 )
...
* Update reference tests to Cancun
Update reference tests to cancun tests.
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
* update the subrepo
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
* update the EIP-6110 acceptance tests
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
* update to develop
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
---------
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
Fabio Di Fabio
20a82d4548
Mining options refactor ( #6027 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
matkt
c839a3b022
add retry logic on sync pipeline for rocksdb issue ( #6004 )
...
* add retry logic for sync pipeline with rocksdb issue
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
1 year ago
Sally MacFarlane
9d9fe8c201
Dencun corner cases ( #6060 )
...
* cherry pick changes from https://github.com/hyperledger/besu/pull/6054/files\#diff-22b78733e37a697fa8d1d8a02d2a87fe5ccea9cf67c34ce5e6311f024c14abd6L643-R738
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
* cherry pick changes from https://github.com/hyperledger/besu/pull/6054/files\#diff-61db834b59eae5ce5c438462505de1add8fa244deda830742060d15f668a9806R39-R44
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
* formatting
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
* update the EIP-6110 acceptance tests
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
---------
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Co-authored-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
1 year ago
Gabriel-Trintinalia
f81088789e
Update changelog release ( #6062 )
...
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
1 year ago
Sally MacFarlane
e8bca6101c
[MINOR] ux improvements ( #6049 )
...
* log command line option that is affected
* made plugins summary log part of config overview
* check for null plugin context
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
---------
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
Justin Florentine
a90ea056f1
Unsigned timestamps and blob gas used ( #6046 )
...
* lots of places an unsigned timestamp is a problem
* adds unchecked annotations to OptionalUnsignedLong rpc parameter type
---------
Signed-off-by: Justin Florentine <justin+github@florentine.us>
1 year ago
David Cardenas
03a8335bf9
Add X (Twitter) to README, Fix Roadmap Hyperlink ( #6047 )
...
* Add X to README, Fix Roadmap Hyperlink
Signed-off-by: David Cardenas <47157243+davidcardenasus@users.noreply.github.com>
* Update README
Signed-off-by: David Cardenas <47157243+davidcardenasus@users.noreply.github.com>
* Update README
Signed-off-by: David Cardenas <47157243+davidcardenasus@users.noreply.github.com>
---------
Signed-off-by: David Cardenas <47157243+davidcardenasus@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
shuoer86
508b04391b
Fix typos ( #6036 )
...
Signed-off-by: shuoer86 <129674997+shuoer86@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
Justin Florentine
a90e4487fc
Fcu v2 defer fork validation ( #6037 )
...
* more error handling
---------
Signed-off-by: Justin Florentine <justin+github@florentine.us>
1 year ago
Fabio Di Fabio
6d100f30b7
Priority senders ( #5959 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
Fabio Di Fabio
7d6fdced22
Fix 23.10.0 Breaking Changes changelog entry ( #6040 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
1 year ago
seongmin
f0b2b56064
fix incorrect argument passing in blockParameter of TraceCallMany class ( #6034 )
...
Signed-off-by: seongmin <sungmin7465@gmail.com>
1 year ago
Sally MacFarlane
0dc37ad81e
link to issue 5772 ( #6038 )
...
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
ahamlat
de2d3b4156
Sort only once rewardPercentiles instead of doing it for each block header ( #6035 )
...
Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
1 year ago
ahamlat
e0b3316612
Cache last blocks data (block headers, block bodies, transactions' receipts and total difficulty) ( #6009 )
...
* Add a flag --cache-last-blocks to cache last n blocks, The default value is 0
Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
1 year ago
ahamlat
8507bb7181
Optimize Eth_feeHistory RPC method ( #6011 )
...
* Add a cache to EthFeeHistory and improve rewards algorithm
* cache the rewards by hash instead of block number
* Add final on some fields
Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
1 year ago
NC
5fce4fd3ed
Standardize pubkey and public key naming in deposit ( #6012 )
...
---------
Signed-off-by: naviechan <adrninistrator1@protonmail.com>
Signed-off-by: Navie Chan <naviechan@gmail.com>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
1 year ago
Sally MacFarlane
c88820ffa8
docs: fix typo ( #6029 )
...
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: vuittont60 <vuittontvuittont50@outlook.com>
1 year ago
Stefan Pingel
eeb60e5130
remove code duplication ( #6028 )
...
Signed-off-by: Stefan <stefan.pingel@consensys.net>
1 year ago
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>
1 year ago
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>
1 year ago
Fabio Di Fabio
4276a40a64
Update 23.10.0 changelog ( #6017 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
1 year ago
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>
1 year ago
Fabio Di Fabio
e946276d21
Use existing Bytes48 for KZGCommitment and KZGProof ( #5997 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
1 year ago
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>
1 year ago
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>
1 year ago
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>
1 year ago
Gabriel-Trintinalia
e8a0428a27
[Plugin API] - TransactionSelector - Notify plugins when transaction is selected/rejected ( #6005 )
...
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
1 year ago
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>
1 year ago
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>
1 year ago
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>
1 year ago
Sally MacFarlane
d97a93e310
add plugins summary ( #5964 )
...
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
1 year ago
Justin Florentine
fddcdf31eb
hive tests explicitly attempt zero ( #5993 )
...
Signed-off-by: Justin Florentine <justin+github@florentine.us>
1 year ago
Fabio Di Fabio
62159dc55d
Bump version to 23.10.1-SNAPSHOT ( #5990 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
1 year ago
Fabio Di Fabio
e4f3b1751c
Only use the builder to create transactions ( #5980 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
1 year ago
Gabriel-Trintinalia
71bc57494d
Plugin Api - Add evaluateTransactionPostProcessing to TransactionSelector interface ( #5988 )
...
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
1 year ago
Gabriel-Trintinalia
2dd16f4d07
[4844] EngineNewPayload - Add Blob Count validation ( #5973 )
...
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
1 year ago
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>
1 year ago
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>
1 year ago
Gabriel-Trintinalia
10b956f75f
Expose getSize to transaction interface ( #5983 )
...
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
1 year ago
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>
1 year ago
Fabio Di Fabio
987d33c63a
Use PendingTransaction in BlockTransactionSelector ( #5966 )
...
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
1 year ago
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>
1 year ago
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>
1 year ago
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>
1 year ago