erigon-pulse/txpool
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
..
testdata pool fuzz bigger corpus 2023-06-20 12:11:17 +07:00
txpoolcfg Txpool upgrades for EIP-4844 Blob Transactions (#1075) 2023-09-10 10:23:46 +00:00
txpooluitl txpool: switch db to durable mode - with fsync outside of pool's global lock (#1109) 2023-09-06 07:26:36 +00:00
fetch_test.go Introduce separate logger to txpool (#994) 2023-05-11 17:32:05 +00:00
fetch.go Txpool upgrades for EIP-4844 Blob Transactions (#1075) 2023-09-10 10:23:46 +00:00
mocks_test.go Txpool upgrades for EIP-4844 Blob Transactions (#1075) 2023-09-10 10:23:46 +00:00
pool_fuzz_test.go EIP-4844: parse transactions when not wrapped with blobs (#1034) 2023-06-27 10:48:14 +00:00
pool_test.go Txpool upgrades for EIP-4844 Blob Transactions (#1075) 2023-09-10 10:23:46 +00:00
pool.go Txpool upgrades for EIP-4844 Blob Transactions (#1075) 2023-09-10 10:23:46 +00:00
send.go Txpool upgrades for EIP-4844 Blob Transactions (#1075) 2023-09-10 10:23:46 +00:00
test_util.go support for eth/68 in transaction pool (#877) 2023-02-01 21:50:37 +00:00
testdata.go Txpool upgrades for EIP-4844 Blob Transactions (#1075) 2023-09-10 10:23:46 +00:00
txpool_grpc_server.go EIP-4844: Rename "data gas" to "blob gas" (#1058) 2023-07-28 09:50:57 +00:00