Qaynaq LABS · TOOLS

CRYPTO GLOSSARY

Mempool

A temporary holding area where unconfirmed cryptocurrency transactions wait before being included in a blockchain block. It acts as a buffer between transaction submission and network validation.

Technical definition

The mempool is a dynamic data structure maintained by each node in a blockchain network that stores pending transactions submitted by users but not yet confirmed by miners or validators. Transactions enter the mempool after being broadcast to the network and validated for basic criteria (e.g., correct signatures, sufficient fees, and non-double-spending). Nodes prioritize transactions based on fee rates, gas limits, or other consensus rules, and miners select them for inclusion in blocks according to their own criteria. The mempool is not a single global entity but a distributed collection of transaction sets across nodes, which may temporarily diverge due to network latency or differing fee policies.

An analogy

Think of the mempool as a busy post office's 'in-tray' where letters (transactions) arrive but haven't been sorted into delivery routes (blocks) yet. Some letters have high postage (fees) and get prioritized, while others wait longer. The post office (node) keeps the tray organized until a mail truck (miner) comes to collect a batch of letters for delivery (block inclusion).

Why it matters

The mempool ensures transactions are temporarily stored and validated before being permanently recorded on the blockchain. It balances network load, prioritizes transactions efficiently, and prevents spam by enforcing fee requirements.

Where it came from

The concept emerged with Bitcoin's early implementation in 2009, where Satoshi Nakamoto included a transaction pool in the code to handle unconfirmed transactions. The term 'mempool' was later formalized in Bitcoin Core's documentation around 2012, and similar structures were adopted by other blockchains like Ethereum.

Example in practice

A user sends 0.1 BTC to a friend with a fee of 50 satoshis per byte. The transaction is broadcast to the network, validated by nodes, and enters their mempools. If the fee is competitive, miners will likely include it in the next block. If the fee is too low, it may linger in the mempool for hours or days until fees drop or it is dropped due to low priority.

Common misconceptions

  • Mempool is a single, centralized database → Correction: It is a distributed set of transaction queues maintained independently by each node, which may temporarily hold different transactions.
  • All transactions in the mempool are guaranteed to be confirmed → Correction: Transactions can remain unconfirmed indefinitely or be dropped if fees are too low or the network is congested.

Risks & limitations

  • Transaction delays: Low-fee transactions may never be confirmed, especially during network congestion.
  • Mempool exhaustion: Spam attacks can flood the mempool with invalid or low-fee transactions, disrupting network operations.
  • State divergence: Temporary inconsistencies between nodes' mempools can lead to temporary forks or failed transactions.
  • Privacy risks: Unconfirmed transactions in the mempool may reveal user activity or intentions before confirmation.

Related terms

About "Mempool" in crypto

Cryptocurrency vocabulary moves faster than any other technical field. New terms appear weekly, old terms quietly change meaning, and most "definitions" online were written by someone trying to sell you something. Qaynaq Labs' crypto glossary aims for the opposite: neutral, accurate, skeptical explainers that include the downside.

This entry covers the technical mechanics, a real-world analogy, where the concept came from, and what could go wrong. Pair it with the related terms to build a working mental model of how the pieces fit together.

Frequently asked

Why do some transactions stay in the mempool for days?

Transactions with fees below the current network minimum or those submitted during extreme congestion may remain unconfirmed until fees drop or the sender replaces them with a higher-fee transaction (using Replace-by-Fee or similar mechanisms).

Can a transaction be removed from the mempool?

Yes. Nodes may drop transactions if they violate consensus rules, if the sender's wallet replaces them with a higher-fee version, or if the transaction remains unconfirmed for an extended period (typically after 1-2 weeks).

Does every blockchain have a mempool?

Most proof-of-work and proof-of-stake blockchains include a mempool-like structure, but some alternative consensus mechanisms (e.g., directed acyclic graphs like IOTA) handle transactions differently without a traditional mempool.