Commit Graph

9 Commits

Author SHA1 Message Date
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
Somnath Banerjee
2d6e293a15
Reduce SyncToNewPeersEvery (#1111)
The default 2 min SyncToNewPeersEvery seems like too big a value for txn
propagation. So, changing the default to something like 5 sec w/o
introducing a flag.
2023-09-06 14:18:19 +00:00
Mark Holt
c2851b6ae7
Added Mdbx sizing to txpool config (#1086)
Added 

 ```
MdbxPageSize          datasize.ByteSize
MdbxDBSizeLimit       datasize.ByteSize
MdbxGrowthStep        datasize.ByteSize
```
to allow txpool db to be configured.
2023-08-26 07:45:09 +00:00
Andrew Ashikhmin
0a6037d12f
OverrideShanghaiTime -> OverrideCancunTime (#1067) 2023-08-03 13:37:28 +00:00
racytech
738be553b6
EIP-4844: TxPool::validateTx extension to meet specs (#1046) 2023-07-17 15:26:37 +00:00
Andrew Ashikhmin
441634e651
Parse EIP-4844 transactions wrapped with blobs (#1037)
Continuation of PR #1034
2023-07-11 07:06:35 +00:00
Andrew Ashikhmin
797724496a
EIP-4844: parse transactions when not wrapped with blobs (#1034)
Implement `ParseTransaction` when `wrappedWithBlobs` is false. (The
`wrappedWithBlobs` case is still to be implemented).
2023-06-27 10:48:14 +00:00
Alex Sharov
8974fbd05a
Enforce blockReader interface (#1023) 2023-06-15 06:11:49 +00:00
Alex Sharov
b29550fd20
Break dependency of ethcfg package to txpool. Create txpoolcfg package (#958) 2023-03-29 07:24:37 +00:00