Up your Web3 game

Ledger Academy Quests

  • Test your knowledge
  • Earn POK NFTs
Play now See all quests

Mempool Meaning

Jun 15, 2023 | Updated Jul 19, 2023
A mempool is a node’s mechanism for tracking all the unconfirmed transactions.

What is a Mempool?

Every time a new transaction is made on a blockchain network, the transaction is not immediately added to the blockchain. The new transactions are first collected and stored in a temporary storage space called “mempool”

A mempool, or memory pool, is the waiting room for all unconfirmed/pending transactions. It’s like an organized waiting list for storing and sorting blocks before they are added to the blockchain.

Every individual node within the blockchain maintains its own mempool that acts as a repository for the series of transactions that it has checked and validated. This means that a blockchain has as many mempools as there are nodes. In simpler terms, a mempool stores unconfirmed transactions as individual transactions.

How Do Crypto Transactions Get Added to the Blockchain?

It’s the job of validators/miners to add new blocks of transactions to the blockchain through “consensus”. Hence, the transaction remains in a node’s mempool until a miner adds it to the blockchain. The node performs initial transaction validation checks, which involve ensuring that the number of outputs matches the inputs, the transaction is not a double spend, and the digital signatures are valid. The participating nodes update their copies of the transaction and propagate them to their peers across the network.

The transaction is rejected if the validation checks fail. Otherwise, it is added to the mempool of the node as it awaits for a miner/validator to include it in the next block. In the case of proof-of-work blockchains, miners compete to solve a complex mathematical puzzle, where the miner that finds a solution first gets to add a new block to the blockchain. Once a block is added to the blockchain, the transactions in that block are deemed “confirmed” and removed from the mempool.

Can Pending Crypto Transactions Be Rejected?

As a rule of thumb, if a transaction occupies the mempool long enough, around 48 hours, the transaction is dropped and the funds returned to the user’s wallet. This may happen when the individual pays a low transaction fee during periods of high transaction volumes. This is because miners typically prioritize transactions that offer competitive gas fees since they incentivize them to include those transactions in the next block. 

Soft Fork

A soft fork refers to a protocol change or modification on a blockchain’s software that invalidates transactions that were previously accepted, which requires miners to update their mining software for older nodes.

Full definition

EtherFi

The EtherFi protocol is a decentralized, non-custodial liquid staking platform built on the Ethereum blockchain.

Full definition

Liquidation

Liquidation in crypto refers to the process of converting assets, typically leveraged positions or collateral, into cash to cover losses or repay borrowed funds when the market moves unfavorably.

Full definition