decoupled parent block header from block creators
optionalized some fields of ProtocolSchedule constructor, which will allow us to reduce number of constructors later.
Refactored JsonBlockImporterTest so it can provide a BesuComponent
ProtocolScheduleBuilder optionalizes the default chainid
Blocks SubCommand is now Dagger aware
Creates but rarely uses ProtocolSpec and ProtocolSchedule modules. Deeper adoption pending.
Adds a Coinbase module with fixed values for use in testing.
Introduces an EthereumCoreComponent, to be used as a subcomponent of BesuComponent in the future.
Introduces a MiningParameters module with common static values used by tests. Removes MiningParameters static constructor.
---------
Signed-off-by: Justin Florentine <justin+github@florentine.us>
Signed-off-by: jflo <justin+github@florentine.us>
Renaming and refactoring the classes common to both Bonsai and Verkle to facilitate the future integration of Verkle.
---------
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Updates MetricsOptions to implement CLIOptions, and to contain its unstable options.
---------
Signed-off-by: Justin Florentine <justin+github@florentine.us>
* shift creation of plugin context to BesuCommand for now
* mock component will provide a no-op metrics sys
---------
Signed-off-by: Justin Florentine <justin+github@florentine.us>
Separate out flex group privacy test since it requires differently configured dependencies.
test specific, inline module/component definitions
reusable module for providing mockable enclaves, besu commands, and genesis
dagger support for transaction simulation
dagger support for plugin setup
---------
Signed-off-by: jflo <justin+github@florentine.us>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
* For test node runners use provided data storage config
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Make the BFT soak mining tests use both Forest and Bonsai DBs
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
---------
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* daggerize PrivacyReorgTest
* inline as many dagger bits into tests as possible
* refactored to use inner classes
* BesuComponent can now be provided
---------
Signed-off-by: Justin Florentine <justin+github@florentine.us>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
* Update parameterized unit tests so the enumerate with --dry-run
* Update the prague-withdrawal.json unit test to handle current code
Signed-off-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
* Add new acceptance test to soak test BFT chains
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Spotless
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Tidy up a little with re-usable start and stop functions with built in delays
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Add shanghai version of Simple Storage contract
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Put commented gradle code back in. Fix the web3j example commands in .sol files
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Spotless
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Set publication artifacts to avoid clash
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Exclude from regular acceptance tests
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Add shanghai fork to the test. Stall the chain for less time to reduce the time taken to mine new blocks
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Tidy up
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Update acceptance-tests/tests/shanghai/build.gradle
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Matt Whitehead <matthew1001@hotmail.com>
* Tidy up var names
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Fix ports for IBFT2 as well as QBFT
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Remove maven publish spec, disable jar building for shanghai contract project
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* web3j version
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Make fixed port optional when creating a BFT node
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
* Only check artifact coordinates for those starting 'org.*'
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
---------
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
Signed-off-by: Matt Whitehead <matthew1001@hotmail.com>
Signed-off-by: Matt Whitehead <matthew.whitehead@kaleido.io>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Move Besu custom error-prone checks into its own repository and use it as an external dependency. This allows to move to a newer version of Google errorprone checks as well while cleaning up build.gradle file.
Key changes resulted due to this change:
* String toLowerCase and toUpperCase to use Locale.ROOT as argument
* Use interface such as List,Map or NavigatableMap instead of concrete class where appropriate.
* Simplify StringBuilder to plain String
* Suppress warnings where appropriate.
-----
Signed-off-by: Usman Saleem <usman@usmans.info>