Skip to content

Commit ecf67fe

Browse files
authored
txpool constants reconfiguring (#3570)
* increase blob size and txpool size * update tests
1 parent 13954e2 commit ecf67fe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

execution_chain/core/tx_pool/tx_desc.nim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ type
5555
blobTab : BlobLookupTab
5656

5757
const
58-
MAX_POOL_SIZE = 5000
59-
MAX_TXS_PER_ACCOUNT = 100
60-
TX_ITEM_LIFETIME = initDuration(minutes = 60)
58+
MAX_POOL_SIZE = 8000
59+
MAX_TXS_PER_ACCOUNT = 500
60+
TX_ITEM_LIFETIME = initDuration(minutes = 10)
6161
TX_MAX_SIZE* = 128 * 1024
6262
# BLOB_TX_MAX_SIZE is the maximum size a single transaction can have, outside
6363
# the included blobs. Since blob transactions are pulled instead of pushed,
6464
# and only a small metadata is kept in ram, there is no critical limit that
6565
# should be enforced. Still, capping it to some sane limit can never hurt.
66-
BLOB_TX_MAX_SIZE* = 1024 * 1024
66+
BLOB_TX_MAX_SIZE* = 1024 * 1024 * 2
6767

6868
# ------------------------------------------------------------------------------
6969
# Private functions

tests/test_txpool.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ suite "TxPool test suite":
369369
gasLimit: 75000
370370
)
371371

372-
const MAX_TXS_GENERATED = 100
372+
const MAX_TXS_GENERATED = 500
373373
for i in 0..MAX_TXS_GENERATED-2:
374374
let ptx = mx.makeTx(tc, acc, i.AccountNonce)
375375
xp.checkAddTx(ptx)

0 commit comments

Comments
 (0)