erigon-pulse/gointerfaces
Somnath Banerjee adef971995
Txpool upgrades for EIP-4844 Blob Transactions (#1075)
EIP-4844 proposed the new (type-3) Blob Transactions which are expensive
(because blobs are big etc.). The tx-pool should be tightened to
alleviate spam and dos attacks by way of these new transactions.

### Changes
**Keep blob txs cached**
During new block, don't delete mined blobTxs, instead cache it till they
are finalized. This is to avoid fetching them again for unwind. During
unwind, if it's a previously seen blobTxn, try to fetch it from memory.

**Pool config**
BlobSlots: Similar to AccountSlots - limits how many blobs a single
account is allowed to have until it's marked as spamming.
Blob txn priceBump: It's an added field in pool config (with a flag).
Defaults to 100%, since blob txs of equal fee are costlier to
process/execute

---------

Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2023-09-10 10:23:46 +00:00
..
downloader deps up (after release) (#1110) 2023-09-06 07:43:44 +00:00
execution deps up (after release) (#1110) 2023-09-06 07:43:44 +00:00
grpcutil Replace ioutil with io and os (#560) 2022-08-01 11:03:48 +07:00
remote Txpool upgrades for EIP-4844 Blob Transactions (#1075) 2023-09-10 10:23:46 +00:00
sentinel Add addPeer RPC (#1033) 2023-09-06 08:31:05 +00:00
sentry Add addPeer RPC (#1033) 2023-09-06 08:31:05 +00:00
txpool deps up (after release) (#1110) 2023-09-06 07:43:44 +00:00
types deps up (after release) (#1110) 2023-09-06 07:43:44 +00:00
test_util.go test success flow 2021-08-09 14:04:22 +07:00
type_utils.go snapshots: grpc event (#377) 2022-03-18 14:47:39 +07:00
version.go Add version and type utils 2021-07-01 17:28:43 +01:00