Skip to content

Commit

Permalink
slight reword
Browse files Browse the repository at this point in the history
Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>
  • Loading branch information
joaniefromtheblock authored Jun 6, 2024
1 parent ac84e77 commit e48ffde
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions docs/public-networks/concepts/transactions/pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ All nodes maintain a transaction pool to store pending transactions before proce

Transaction pools are categorized into the following two types:

* [Sequenced](#sequenced-transaction-pool) - Recommended for private chains.
* [Layered](#layered-transaction-pool) - Recommended for public chains.
* [Layered](#layered-transaction-pool) - Recommended for public blockchain networks.
* [Sequenced](#sequenced-transaction-pool) - Recommended for private blockchain networks.

Options and methods for configuring and monitoring the transaction pool include:

Expand All @@ -34,19 +34,6 @@ the [privacy marker transaction](../../../private-networks/concepts/privacy/priv
is submitted to the transaction pool, not the private transaction itself.
:::

## Sequenced transaction pool

In the sequenced transaction pool, transactions are processed strictly in the order they are received.
Although sequenced transaction pools lack the flexibility of layered pools, they help maintain a
consistent and transparent transaction order, which is often important in private blockchain
environments.

To select the sequenced transaction pool, set the `--tx-pool=sequenced` configuration option.
If you choose the enterprise configuration profile using `--profile=enterprise`, the sequenced transaction pool is set by default.
The sequenced transaction pool suits enterprise environments and functions like a first-in-first-out (FIFO) queue.
It processes transactions in the order of submission, regardless of the sender.
When the pool reaches capacity, the newer transactions are evicted first, reducing the likelihood of a nonce gap and avoiding the need to resubmit older transactions.

## Layered transaction pool

The [layered transaction pool](https://github.com/hyperledger/besu/pull/5290) is the default
Expand Down Expand Up @@ -77,7 +64,19 @@ If you previously configured transaction pool behavior, upgrade to the layered t
You can opt out of the layered transaction pool implementation by setting the
[`--tx-pool`](../../reference/cli/options.md#tx-pool) option to `sequenced`.

## Dropping transactions when the transaction pool is full
## Sequenced transaction pool

In the sequenced transaction pool, transactions are processed strictly in the order they are received.
Although sequenced transaction pools lack the flexibility of layered pools, they help maintain a
consistent and transparent transaction order, which is often useful in private blockchains.

You can select the sequenced transaction pool by setting `--tx-pool=sequenced`.

If you set the enterprise configuration profile using `--profile=enterprise`, the sequenced transaction pool is set by default.
The sequenced transaction pool suits enterprise environments because it functions like a first-in-first-out (FIFO) queue and processes transactions in the order of submission, regardless of the sender.
When the pool reaches capacity, the newer transactions are evicted first, reducing the likelihood of a nonce gap and avoiding the need to resubmit older transactions.

## Dropping transactions when the layered transaction pool is full

When the transaction pool is full, it accepts and retains local transactions in preference to remote transactions.
If the transaction pool is full of local transactions, Besu drops the oldest local transactions first.
Expand Down

0 comments on commit e48ffde

Please sign in to comment.