Commit Graph

11 Commits

Author SHA1 Message Date
ledgerwatch
9375b2173b
Introduce separate logger to txpool (#994)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-05-11 17:32:05 +00:00
Temirlan
8234bab3de
TxPool sendersBatch optimizations (#927)
Reduce memory allocations and using inverted index (instead of
brute-force).
Use common.Address type instead of []byte

[Related issue](https://github.com/ledgerwatch/erigon/issues/7002)
2023-03-16 03:32:58 +00:00
Roberto Bayardo
39694bc9d5
nit: tweak error handling for rlp too big (#834)
I believe ValidateSerializedTxn should be returning (or at least
wrapping) types.RlpTooBig instead of creating a new error when the
transaction exceeds max size, since this is the error the txpool
actually checks for:


61706714c3/txpool/txpool_grpc_server.go (L204)

Before this change the ImportResult for an oversized tx would be
INTERNAL_ERROR; after this change it will be INVALID, which seems more
appropriate.

Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com>
2023-01-18 14:38:47 +07:00
hexoscott
8969b9c58f
txpool changes for eip-3860 (#820)
shanghai changes to txpool.

intrinsic gas updated to match the new version in Erigon.

unsure if the `isShanghai` check is robust enough or there would be a
better way to approach this.
2023-01-16 22:15:42 +00:00
hexoscott
c9a7ae152a
move to PeekBest and YieldBest methods in txpool (#773)
Following up on comments from the first iteration of this change. How
does this look?
2022-12-09 10:59:00 +00:00
hexoscott
9f72de1e9d
txpool to mark candidate txs for mining (#772)
as we're now visiting the txpool multiple times during mining we need a
way to ensure we're not trying to include the same transactions twice
and to only get new data each time. This seems a simple way to achieve
this, but if there would be a better way let me know.
2022-12-09 09:51:50 +00:00
hexoscott
6ec0a1ba7c
txpool to consider available gas in Best call (#755) 2022-12-02 15:32:56 +00:00
ledgerwatch
51b120abdd
[txpool] Best function to accept onTopOf argument and indicate whenever it is too early to gather tx for a block (#685)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-10-14 23:11:37 +01:00
Alex Sharov
6f7794e88b
Pool: parse rlp chain id for non-legacy transactions (#542)
* save

* save

* save

* save

* save

* save
2022-07-23 10:11:25 +07:00
Andrew Ashikhmin
5278815cd0
Start txpool in AddLocalTxs (#480)
* Start txpool in AddLocalTxs

* Correct tx in fromDB called by AddLocalTxs
2022-06-08 10:39:22 +02:00
Alex Sharov
bf0e20e80c
Rename sentry.ControlServerImpl to sentry.MultyClient and sentry.SentryServerImpl to sentry.GrpcServer #444 2022-05-10 12:17:19 +07:00