Skip to content

Commit

Permalink
Add sequenced synonym for legacy txpool (#1508)
Browse files Browse the repository at this point in the history
* Add sequenced synonym for legacy txpool

Signed-off-by: Alexandra Tran <[email protected]>

* update examples and cli description

Signed-off-by: Alexandra Tran <[email protected]>

---------

Signed-off-by: Alexandra Tran <[email protected]>
  • Loading branch information
alexandratran authored Feb 15, 2024
1 parent c4d727c commit 093e69e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions docs/public-networks/concepts/transactions/pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ If you previously configured transaction pool behavior, upgrade to the layered t
To configure the maximum memory capacity, use [`--tx-pool-layer-max-capacity`](../../reference/cli/options.md#tx-pool-layer-max-capacity).

You can opt out of the layered transaction pool implementation by setting the
[`--tx-pool`](../../reference/cli/options.md#tx-pool) option to `legacy`, but the legacy
implementation will be deprecated soon, so we recommend using the layered pool.
[`--tx-pool`](../../reference/cli/options.md#tx-pool) option to `sequenced`.

## Dropping transactions when the transaction pool is full

Expand Down
13 changes: 4 additions & 9 deletions docs/public-networks/reference/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -4747,23 +4747,23 @@ Use the [`miner_changeTargetGasLimit`](../api/index.md#miner_changetargetgaslimi
<TabItem value="Example" label="Example">

```bash
--tx-pool=legacy
--tx-pool=sequenced
```

</TabItem>

<TabItem value="Environment variable" label="Environment variable">

```bash
BESU_TX_POOL=legacy
BESU_TX_POOL=sequenced
```

</TabItem>

<TabItem value="Configuration file" label="Configuration file">

```bash
tx-pool="legacy"
tx-pool="sequenced"
```

</TabItem>
Expand All @@ -4772,14 +4772,9 @@ tx-pool="legacy"

Type of [transaction pool](../../concepts/transactions/pool.md) to use.
Set to `layered` to use the layered transaction pool implementation.
Set to `legacy` to opt out of the layered transaction pool.
Set to `sequenced` (previously known as `legacy`) to opt out of the layered transaction pool.
The default is `layered`.

:::caution
The legacy transaction pool implementation will be deprecated soon, so we recommend using the
default layered transaction pool.
:::

### `tx-pool-enable-save-restore`

<Tabs>
Expand Down

0 comments on commit 093e69e

Please sign in to comment.