Skip to content

Commit

Permalink
Txpool options (#1339)
Browse files Browse the repository at this point in the history
* Add missing tx-pool options.

Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>

* Typos...

Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>

* Typos...

Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>

* Implement feedback.

Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>

* Address reviewer feedback.

Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>

---------

Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
  • Loading branch information
bgravenorst authored Jun 6, 2023
1 parent 64d8a8a commit 90c2176
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions docs/public-networks/reference/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -3358,6 +3358,66 @@ Use the [`miner_changeTargetGasLimit`](../api/index.md#miner_changetargetgaslimi
the `target-gas-limit` while Besu is running. Alternatively restart Besu with an updated
`target-gas-limit` value.
### `tx-pool-disable-locals`
=== "Syntax"
```bash
--tx-pool-disable-locals[=<true|false>]
```
=== "Example"
```bash
--tx-pool-disable-locals=true
```
=== "Environment variable"
```bash
BESU_TX_POOL_DISABLE_LOCALS=true
```
=== "Configuration file"
```bash
tx-pool-disable-locals=true
```
If this option is set to true, transactions received via RPC must have the same checks, and should not be prioritized
over remote transactions. The default is `false`.
### `tx-pool-enable-save-restore`
=== "Syntax"
```bash
--tx-pool-enable-save-restore[=<true|false>]
```
=== "Example"
```bash
--tx-pool-enable-save-restore=true
```
=== "Environment variable"
```bash
BESU_TX_POOL_ENABLE_SAVE_RESTORE=true
```
=== "Configuration file"
```bash
tx-pool-enable-save-restore=true
```
Enables or disables saving the transaction pool contents to a file on shutdown and reloading it at startup.
The default is `false`.
You can define a custom path to the transaction pool file using the [`--tx-pool-save-file`](#tx-pool-save-file) option.
### `tx-pool-limit-by-account-percentage`
=== "Syntax"
Expand Down Expand Up @@ -3480,6 +3540,37 @@ The price bump percentage to replace an existing transaction. The default is 10.
The maximum period, in hours, to hold pending transactions in the transaction pool. The default is
13.
### `tx-pool-save-file`
=== "Syntax"
```bash
--tx-pool-save-file=<FILE>
```
=== "Example"
```bash
--tx-pool-save-file=/home/me/me_node/node_txpool.dump
```
=== "Environment variable"
```bash
BESU_TX_POOL_SAVE_FILE=/home/me/me_node/node_txpool.dump
```
=== "Configuration file"
```bash
tx-pool-save-file="/home/me/me_node/node_txpool.dump"
```
Path to the file that stores the transaction pool's content if the save and restore functionality is enabled
using [`--tx-pool-enable-save-restore`](#tx-pool-enable-save-restore). The
file is created on shutdown and reloaded during startup. The default file name is `txpool.dump` in the
[data directory](#data-path).

### `Xhelp`

=== "Syntax"
Expand Down

0 comments on commit 90c2176

Please sign in to comment.