Commit Graph

3729 Commits

Author SHA1 Message Date
Danno Ferrin
2d02f6be41 Update Security Policy contact info (#4447)
* Update Security Policy contact info

At the request of the EF, a besu-only security list was created, and is
the first listed email.  The out-of-date Jira location is also removed.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2022-10-03 14:08:51 +01:00
Fabio Di Fabio
cbe6306a34 Add Mainnet to merged networks (#4463)
* Add Mainnet to the merged networks, to force fast-sync-min-peers to 1

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2022-10-01 17:28:48 +02:00
Fabio Di Fabio
10e72bb99d Avoid to process transactions during initial sync (#4457)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2022-09-30 17:30:07 +02:00
Fabio Di Fabio
64bf83cfeb Keep the best block built until now instead of the last one (#4455)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2022-09-30 10:55:32 +02:00
Justin Florentine
5fe49c60b3 these don't need to be at info (#4432)
Signed-off-by: Justin Florentine <justin+github@florentine.us>
2022-09-27 17:20:41 +02:00
Justin Florentine
347eaa2a18 updated version and CHANGELOG for next dev cycle (#4444)
Signed-off-by: Justin Florentine <justin+github@florentine.us>
2022-09-27 12:22:33 +02:00
Justin Florentine
286a6f3f38 adding new release version (#4442)
* adding new release version
* updating changelog

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2022-09-26 12:28:26 -04:00
ahamlat
d6e1400937 Add config file support for high spec flag (#4438)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Co-authored-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2022-09-26 14:05:27 +02:00
Fabio Di Fabio
1fbf70317a Remove sender from map when he has no more tracked transactions (#4415)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2022-09-25 13:49:15 +02:00
garyschulte
459550a980 move download links into 22.7.3 block, add sha's for the artifacts (#4433)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-24 04:00:28 +10:00
garyschulte
0848d2e15d Prepare for version 22.7.4-SNAPSHOT (#4431)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-23 10:28:23 -07:00
garyschulte
a79590e2ec 22.7.3 release (#4430)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-23 09:51:25 -07:00
Pedro Novais
361390372f logs JSON-RPC request and responses in TRACE mode (#4395)
Signed-off-by: Pedro Novais <jpvnovais@gmail.com>
Co-authored-by: Antony Denyer <git@antonydenyer.co.uk>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
2022-09-23 19:53:08 +10:00
Sally MacFarlane
94c95538e8 Logging: peer table refresh (#4391)
changed some log messages

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
2022-09-23 18:37:02 +10:00
garyschulte
42086bf4a8 Make transaction pool limits for sender based on pool size (#4417)
* make transaction pool limits for sender based on pool size.  default by sender is 5
move config into TransactionPoolOptions class

Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-23 09:15:03 +02:00
ahamlat
8718fa61e0 Create a new flag on RocksDB for high spec hardware to boost performance (#4423)
* Create a new flag on RocksDB (--Xplugin-rocksdb-high-spec-enabled) for high spec hardware to boost performance.
Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
2022-09-23 14:09:45 +10:00
Fabio Di Fabio
30bff31823 Transaction pool improvements to avoid filling the pool with not executable transactions (#4425)
* Add more tracing logs to transaction pool
* Prevent adding non executable transactions and evict based on age
* Move sender account in TransactionsForSenderInfo
* Implement a size expiration cache for lowest invalid nonce for sender

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2022-09-22 17:40:21 -07:00
Justin Florentine
bc7b9c32a2 update CHANGELOG for 4349 (#4426)
Signed-off-by: Justin Florentine <justin+github@florentine.us>
2022-09-22 13:46:01 -04:00
Danno Ferrin
bf83efd851 Upgrade snakeyaml to 1.32 (#4419)
Upgrade org.yaml:snakeyaml to 1.32

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2022-09-21 12:52:07 -06:00
garyschulte
6d9b328c01 Bump besu-native to 0.6.1 (#4416)
* bump to release version of besu-native 0.6.1

Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-22 03:50:07 +10:00
Daniel Lehrner
bc9ff867c4 Less strict engine QoS timer (#4411)
* reset engine QoS timer with every call to the engine API, ExchangeTransitionConfiguration mismatch will only submit a debug log not a warning anymore

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
2022-09-21 18:23:03 +02:00
Fabio Di Fabio
5e156253ab Retry mechanism for block creation (#4407)
* Retry mechanism for block creation

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

* Update CHANGELOG

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

* Always keep 1 thread active in the computation executors

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

* Surface StorageException when building a block for finer filtering

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

* Log successful block created at info

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

* Reformat block proposal logs

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

* Remove test code

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

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2022-09-20 09:54:14 +02:00
ahamlat
53193764be Fix StacklessClosedChannelException caused by the fact that all Engine API requests are executed sequentially. (#4410)
Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
2022-09-19 12:24:07 -04:00
matkt
9b42ab57a7 waiting blockchain before stopping snapsync (#4345)
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
2022-09-15 19:06:16 +10:00
Sally MacFarlane
9a6701eb4e add tostring (#4392)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2022-09-14 23:51:45 +02:00
garyschulte
240a4811f4 Bugfix concurrent legacy transaction eviction in BaseFee txpool (#4390)
* make static range comparator safe for non-1559 transactions

Signed-off-by: garyschulte <garyschulte@gmail.com>

* spotless, and rebase

Signed-off-by: garyschulte <garyschulte@gmail.com>

Signed-off-by: garyschulte <garyschulte@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2022-09-14 09:29:11 -07:00
Danno Ferrin
4691bfdba7 Revise Memory Expansion (#4387)
Move from a perfect fit memory expansion model to an exponential
expansion model.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2022-09-13 17:43:23 -06:00
garyschulte
26e23ac808 Quieten merkletrie exceptions (#4378)
* quieten the txpool merkletrie exceptions
* move prepareBlock stacktraces to debug

Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-13 11:37:03 -07:00
Pedro Novais
6dc07494bb Inject synchronous Vertx as dependency for engine api (#4289)
Inject vertx dependency into EngineJsonRpcMethods instead of creating a new one. 

Improves testability, before some tests failed with too many files open because vertx inside EngineJsonRpcMethods was not being closed on test's afterEach hook

Signed-off-by: Pedro Novais <jpvnovais@gmail.com>
2022-09-13 11:54:39 +01:00
garyschulte
e9d261d47c Feature/prep 22.7.3 (#4370)
* prep for 22.7.3

Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-08 13:33:38 -07:00
Danno Ferrin
79ff26ec83 Update spotless config (#4366)
Update the greclipse version in spotless as directed by build errors
to reduce random formatting errors.

Also, update formatting to new version

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2022-09-08 16:57:46 +01:00
Sally MacFarlane
1623338087 Remove connections if they are already disconnected (#4304)
* remove disconnected peers

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

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2022-09-08 14:24:02 +10:00
garyschulte
980a461439 prep for 22.7.3 (#4362)
Signed-off-by: garyschulte <garyschulte@gmail.com>

Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-08 11:40:19 +10:00
Matt Nelson
20fc1b7f2c Wording tweaks for edge cases. (#4351)
Signed-off-by: Matt Nelson <matt.nelson@consensys.net>
Co-authored-by: garyschulte <garyschulte@gmail.com>
2022-09-07 11:46:54 -07:00
matkt
c57dcd99d9 fix trie by asking peers (#4312)
* fix trie by asking peers

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
2022-09-08 03:45:51 +10:00
Justin Florentine
101f5efbdc refactors to rely on blocks added, and behave like singleton (#4325)
* refactors to rely on blocks added, and behave like singleton
* pulls up synchronizer building to keep merge related stuff in right place
* shows ready on pre-merge nets. no display on most merge nets
* listens for finalized, explains more pandas

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2022-09-08 01:57:29 +10:00
Justin Florentine
93109ecc2c adds means to report causing exception up to RPC layer so it can decide how to present it to the CL (#4352)
Signed-off-by: Justin Florentine <justin+github@florentine.us>
2022-09-07 11:21:05 -04:00
Fabio Di Fabio
d20f0a8f49 Always shutdown the miner executor on exit (#4353)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2022-09-07 16:23:33 +02:00
Danno Ferrin
296025865f Quieter logging on wire-RLP Errors (#4337)
* Quieter logging on wire-RLP Errors

When handling a top level RLP encoding error received over the wire we
shouldn't loudly complain about it but instead log it debug.

This particular wrapping handles the case where the top level response
is truncated or otherwise corrupt.

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

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2022-09-06 14:53:30 +10:00
Matt Nelson
6e8a906dfb Update snapsync logging for clearer status. Issue 4346. (#4347)
Signed-off-by: Matt Nelson <matt.nelson@consensys.net>

Signed-off-by: Matt Nelson <matt.nelson@consensys.net>
2022-09-06 09:00:22 +10:00
Sally MacFarlane
770b6b8354 tessera 22.1.7 (#4316)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2022-09-04 23:12:13 -07:00
Stefan Pingel
a5bf37c1ec cleanup from PR 4178 (#4266)
Signed-off-by: Stefan <stefan.pingel@consensys.net>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2022-09-05 09:58:01 +10:00
garyschulte
8ee253982c Feature/tx sender future nonce limits (#4336)
* add max future nonce configs, update plumbing to use txpool config rather than constants

Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-02 09:44:51 -07:00
garyschulte
f3fd946edf Evict Transactions by sender from tail first (#4327)
* evict transactions from tail of senderAndNonce rather than just lowest price
* make pendingTransactions secondary sort based on timestamp rather than sequence id (to better prevent collisions for same gas price and sequence id)

Signed-off-by: garyschulte <garyschulte@gmail.com>
2022-09-01 22:39:47 +02:00
Justin Florentine
2e08c5c095 4328 quiet cors errors (#4335)
* adds a failure handler to all routes that will log failure exceptions with their message only. stacks can be printed by turning debug on.

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2022-09-01 13:56:56 -04:00
Matt Nelson
86c308096b Fixing sub logging and moving stack trace to debug. (#4334)
* Fixing sub logging and moving stack trace to debug.

Signed-off-by: Matt Nelson <matt.nelson@consensys.net>
Co-authored-by: Matt Nelson <matt.nelson@Matts-MacBook-Pro.local>
2022-08-31 16:32:35 -04:00
Simon Dudley
fd666dfd61 Add ZeroBaseFeeMarket to support post-London free gas networks (#4174)
* Add zeroBaseFee config for all consensus types

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Use ZeroBaseFeeMarket when zeroBaseFee is set

Introduce ZeroBaseFeeMarket overriding computeBaseFee with 0
Wire ZeroBaseFeeMarket into MainnetProtocolSpecs.londonDefinition when zeroBaseFee set

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Fix BaseFeeMarketBlockHeaderGasPriceValidationRule to allow syncing to work

Without this, rule would fail if syncing a chain with a non-zero baseFee

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Fix fast sync invalid block error

Occurred while testing clique in scenario where londonFork had a non-zero base fee, but zeroBaseFee flag was used to sync

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Update changelog

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Address review comments: Remove startup log

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Address review comments: replace isForkBlock with validationMode

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Address review comments: replace ZeroBaseFeeMarket instance check with validationMode

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Fix changelog
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Split validationMode into baseFeeValidationMode and gasLimitValidationMode

Since behaviour needs to differ between BaseFeeMarketBlockHeaderGasPriceValidationRule and GasLimitRangeAndDeltaValidationRule

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

* Update changelog

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2022-08-31 00:52:43 +01:00
Fabio Di Fabio
af65c86e64 Retry mechanism when getting a broadcasted block fail on all peers (#4271)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2022-08-26 11:14:29 +02:00
Fabio Di Fabio
c321a85ef0 Log imported block info post merge (#4310)
Removed ommers and added base fee.

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2022-08-26 10:40:00 +02:00
Pedro Novais
c5ae9f5da9 changes MergeCoordinator fields to protected to allow extension; (#4287)
Signed-off-by: Pedro Novais <jpvnovais@gmail.com>

Co-authored-by: Antony Denyer <git@antonydenyer.co.uk>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2022-08-26 15:41:14 +10:00