Skip to main content
£0.00 0

Basket

No products in the basket.

ASIC mining articles and advice

Bitcoin Core mempoolexpiry Explained: Transaction Retention

Bitcoin Core mempoolexpiry guide covering age-based removal, rebroadcast expectations, wallet and mining effects, persistence and safe retention testing.

Bitcoin Core mempoolexpiry guide cover

This guide explains Bitcoin Core mempoolexpiry in plain English. It focuses on what the subject is, why it matters and what a beginner should remember.

TL;DR

  • What it is: Bitcoin Core’s mempoolexpiry setting limits how long an unconfirmed transaction remains in the local mempool, expressed in hours in Core 0.12. Age-based removal controls stale state, but it does not cancel a transaction, reverse a payment or make its inputs safe to spend.
  • Why it matters: mempoolexpiry bounds local unconfirmed-state age; it does not erase a transaction from Bitcoin. Choose it with wallet and mining workflows in mind and test expiry, reappearance and restart explicitly.
  • Current position: Bitcoin Core’s mempoolexpiry setting limits how long an unconfirmed transaction remains in the local mempool, expressed in hours in Core 0.12.

Bitcoin Core mempoolexpiry in simple English

Bitcoin Core mempoolexpiry: Transactions can leave before the expiry horizon through block confirmation, conflict, replacement, reorganisation handling or memory-pressure eviction.

Simple example

A miner is checking Bitcoin Core mempoolexpiry. Expiry removes an entry locally after the configured age. Short retention can reduce stale backlog but may discard packages valuable when fee conditions change.

Key terms in plain English

Bitcoin Core:
Widely used software that validates Bitcoin and can provide wallet, network and operator tools.
Consensus:
The shared rules full nodes use to decide whether blocks and transactions are valid.
Mempool:
A node’s changing local collection of valid, unconfirmed transactions.
Node:
A computer running Bitcoin software that checks data and communicates with other peers.

Local retention, not network truth

Each node maintains its own unconfirmed set under its own policy and uptime history. Expiry removes an entry locally after the configured age. It does not communicate cancellation and does not invalidate consensus-valid transactions. Payment systems must distinguish local absence from confirmed conflict, replacement or final business resolution.

How age interacts with pressure

Transactions can leave before the expiry horizon through block confirmation, conflict, replacement, reorganisation handling or memory-pressure eviction. A long expiry is not a guarantee of retention. Maxmempool and fee policy often dominate during congestion, while expiry matters most for old, otherwise acceptable entries.

Dependencies and packages

A parent transaction may support descendants. Removing or failing to retain part of a package changes what the node can validate and relay from its current mempool. Exact removal mechanics vary by version. Tests should include chains, replacements and conflicting spends rather than only standalone transactions.

Bitcoin Core mempoolexpiry technical diagram
Dependencies and packages: the fields, validation boundary and operational evidence that implementations need to agree.

Wallet expectations

Wallet interfaces may continue to show an unconfirmed transaction after the node’s mempool no longer contains it. Rebroadcast and abandonment behaviour is wallet- and version-specific. Operators must not automate a second payment merely because getmempoolentry fails; inspect wallet state, peers, conflicts and the chain first.

Mining and pool policy

A mining node cannot template a transaction absent from its local candidate set unless it receives it again. Short retention can reduce stale backlog but may discard packages valuable when fee conditions change. Primary and failover nodes should use intentional compatible policy or monitoring should explain why their templates differ.

Restart and persistence

Historical Core releases changed whether and how mempool contents survived restart. Expiry clocks and load-time checks can therefore behave differently across versions. Test graceful restart, crash recovery and an entry already older than the configured threshold. Never infer persistence from a modern node when documenting 0.12 behaviour.

How specialists test it

Developers test the proposal with made-up data on an isolated test network. They check normal cases and deliberately invalid cases. Different implementations should reach the same result before anyone relies on the proposal.

Frequently asked questions

What is the main point of Bitcoin Core mempoolexpiry?

Bitcoin Core mempoolexpiry: Transactions can leave before the expiry horizon through block confirmation, conflict, replacement, reorganisation handling or memory-pressure eviction.

For Bitcoin Core mempoolexpiry, what should a beginner know about local retention, not network truth?

Each node maintains its own unconfirmed set under its own policy and uptime history.

For Bitcoin Core mempoolexpiry, what should a beginner know about how age interacts with pressure?

Transactions can leave before the expiry horizon through block confirmation, conflict, replacement, reorganisation handling or memory-pressure eviction.

For Bitcoin Core mempoolexpiry, what should a beginner know about dependencies and packages?

A parent transaction may support descendants. Removing or failing to retain part of a package changes what the node can validate and relay from its current mempool.

Conclusion

mempoolexpiry bounds local unconfirmed-state age; it does not erase a transaction from Bitcoin. Choose it with wallet and mining workflows in mind and test expiry, reappearance and restart explicitly.

Primary sources

Check the current specification status and the documentation for the exact implementation you operate before moving production funds or changing a mining node.

ASIC MINER PICKS

Recommended ASIC Mining Hardware

Compare three of our highest ranked ASIC miners currently available, with live product details and pricing.
Browse all ASIC miners
MORE MINING ADVICE

More ASIC Mining Articles

Read practical advice about choosing hardware, calculating electricity costs, setting up miners, hosting and maintenance.
MINER COMMUNITY

Join the ASIC Mining Discussion

Ask a question or share what has worked for you. Your experience may help another miner make a better decision.

Members can read and join the discussion

Log in to read comments from other miners. Create a free account if you would like to ask a question or share your experience.

Log in to read comments Register to join the discussion

Membership helps us protect the discussion from spam and keep answers useful.

ASIC MINING SUPPORT

Need Help Choosing an ASIC Miner?

Tell us what you want to mine, your electricity cost and where the machine will run. We can help you compare hardware, power requirements, hosting and repairs.
Contact our mining team
Browse ASIC miners