> For the complete documentation index, see [llms.txt](https://bitnet-whitepaper.gitbook.io/developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bitnet-whitepaper.gitbook.io/developer-docs/setup-and-configuration/mempool.md).

# Mempool

### Transaction Mempool Configuration in BitNet

The **mempool** is where incoming transactions wait before being included in a new block. BitNet supports two mempool modes for handling transaction flow and prioritization.

#### FIFO Mempool (Default)

By default, BitNet uses a **First-In, First-Out (FIFO)** mempool strategy. Transactions are processed in the exact order they arrive. This order applies both to:

* **Gossiping** transactions to peers
* **Including** them in the next block

This method ensures fairness but doesn't prioritize high-fee transactions.

***

#### Prioritized Mempool (v1)

BitNet also supports the **prioritized mempool** introduced in Tendermint v0.35. In this mode, transactions are **ranked by fee or custom priority logic**.

**Key Features:**

* Transactions with **higher fees** are selected first for inclusion in the next block.
* If the mempool is full, **low-priority transactions are evicted** in favor of higher-paying ones.
* This is ideal for **EIP-1559-style fee markets**, where users can set a base fee and a tip.

{% hint style="danger" %}
Transaction gossiping still follows FIFO even in prioritized mode — only **block inclusion** is affected by priority.
{% endhint %}

***

#### Enabling Prioritized Mempool

To activate the prioritized mempool in your node, update the `config.toml` file:

```toml
[mempool]
version = "v1"  # Use "v0" for FIFO, "v1" for prioritized
```

Then restart your node:

```bash
bitnetd start
```

***

#### Use Cases for Prioritized Mode

* **Validators** can maximize revenue by automatically selecting high-fee transactions.
* **Users** can ensure faster inclusion of time-sensitive transactions by adding priority tips.
* **Applications** can implement dynamic fee estimation based on mempool state.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://bitnet-whitepaper.gitbook.io/developer-docs/setup-and-configuration/mempool.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
