what is a mempool

Understanding the Mempool

A mempool, short for "memory pool," is a critical component of a blockchain network that serves as a temporary storage area or waiting room for unconfirmed transactions 1. When a user initiates a transaction, it is broadcasted to the network and enters the mempool, where it waits to be verified and included in a block by miners or validators 14.

Mempool Function and Transaction Processing

The mempool acts as a queue for pending transactions before they are added to the blockchain 4.
  • Storage and Verification: The mempool temporarily stores transactions that are awaiting verification . Full nodes download every block and transaction, and they are responsible for accepting or rejecting submitted transactions .
  • Block Production: A block producer (such as a miner or validator) selects transactions from the mempool to compile into a new block 54.
  • Prioritization: Transactions are typically prioritized based on the attached fee, operating as a "fee rate auction market" 5. Block producers choose transactions with the highest fees first to maximize their revenue 5.
  • Confirmation: Once a block is produced and finalized, the transactions are added to the blockchain ledger 5. If a transaction is in the mempool, it is shown as unconfirmed or pending on a blockchain explorer 6.

Mempool Congestion and Fees

The mempool provides insights into network activity, transaction fees, and the overall demand for block space 1.
  • Congestion: When network demand exceeds the available block space, the mempool becomes crowded, which can cause transaction fees to rise 1. Congestion implies longer transaction confirmation times 7.
  • Fee Dynamics: Increases in mempool size (congestion) align closely with higher transaction fees, demonstrating a direct relationship between network demand and cost 8. For example, on the Stacks blockchain, a massive spike in mempool size correlated with a sharp increase in transaction fees 8.
  • Examples of Surges: Significant surges in the Bitcoin mempool have been linked to events like the Terra/LUNA crisis, the FTX collapse, and the launch of Ordinals inscriptions, which drove increased network activity and higher-fee transactions 9. In mid-2023, the Bitcoin mempool transaction count surpassed 200,000, indicating significant network congestion 7.
  • Free Transactions: On networks like Chia, users can transact for free when network usage is low. However, when the mempool reaches full capacity, users are required to pay transaction fees .

Mempool Depth and Stuck Transactions

Mempool Depth Mempool depth, also known as mempool weight, refers to the sum of all transactions in the mempool based on storage space, typically denoted in bytes or megabytes 6. A larger mempool size indicates congestion in the network 6. Bitcoin mempools have a default limit of 300MB, though node operators can adjust this 6.
Handling Stuck Transactions If a transaction is stuck in the mempool, users have several options 6:
  • Wait: The transaction may be sent back to the user's wallet if a miner has not added it to a block within a sufficient time (usually 24 to 48 hours) 6.
  • Increase Fees: Users can accelerate the transaction by paying higher fees using methods like Replace By Fee (RBF) or Child Pays For Parent (CPFP), which incentivize miners to approve the transaction 6.
  • Accelerators: Bitcoin Transaction Accelerators, often offered by mining pools, can be used to speed up the transaction 6.
You're viewing a shared conversation. Your questions will start a new chat.