Skip to content

Commit

Permalink
Add tx-pool-max-prioritized-by-type option (#1588)
Browse files Browse the repository at this point in the history
* Add tx-pool-max-prioritized-by-type option

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* Update wording 

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* add link

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* fix broken link

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* Update language

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>
Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* Update docs/public-networks/reference/cli/options.md

Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* rewrite 

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* update with suggestion

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* Update wording

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

---------

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>
Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
  • Loading branch information
3 people committed May 29, 2024
1 parent e578e3b commit 70fdf40
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions docs/public-networks/reference/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -5186,6 +5186,51 @@ The default is `2000`.
For private networks, we recommend setting this value to the maximum number of transactions that fit
in a block in your network.
### `tx-pool-max-prioritized-by-type`
<Tabs>
<TabItem value="Syntax" label="Syntax" default>
```bash
--tx-pool-max-prioritized-by-type=<TYPE=INTEGER>
```
</TabItem>
<TabItem value="Example" label="Example">
```bash
--tx-pool-max-prioritized-by-type=BLOB=6
```
</TabItem>
<TabItem value="Environment variable" label="Environment variable">
```bash
BESU_TX_POOL_MAX_PRIORITIZED_BY_TYPE=BLOB=6
```
</TabItem>
<TabItem value="Configuration file" label="Configuration file">
```bash
tx-pool-max-prioritized-by-type="BLOB=6"
```
</TabItem>
</Tabs>
The maximum number of transactions of a specific [transaction type](../../concepts/transactions/types.md) that are prioritized in the [layered transaction pool](../../concepts/transactions/pool#layered-transaction-pool).
This option is mostly useful for tuning the amount of prioritized [blob transactions](../../concepts/transactions/types#blob-transactions) in the transaction pool.
Keeping the prioritized layer sorted is costly, and only a few blob transactions can fit in a block (currently a maximum of six).
Tuning the maximum number of prioritized transactions by type can help maintain the efficiency and performance of the transaction pool.
The default is `BLOB=6`.
### `tx-pool-max-size`
<Tabs>
Expand Down

0 comments on commit 70fdf40

Please sign in to comment.