THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Does Mempool Rejection Mean a Bitcoin Transaction Is Invalid?

permalink THAMER
#bitcoin-mempool-rejection#consensus-vs-policy#transaction-relay

Not necessarily. A transaction rejected by a node's mempool may still be valid under Bitcoin consensus rules. Nodes apply additional relay policies to manage fees, bandwidth, and denial-of-service risk.

What causes policy rejection?

Examples include a feerate below a node's current mempool minimum, an output considered dust by relay policy, nonstandard script forms, or conflicts with local mempool entries. Policies can vary between nodes and software versions.

When is a transaction actually invalid?

A transaction is consensus-invalid if it violates applicable consensus rules, for example by spending a nonexistent UTXO, failing a required signature check, or creating outputs whose value exceeds its inputs. Such a transaction cannot be included in a valid block.

Can a miner include a policy-rejected transaction?

Yes, if the transaction is consensus-valid and the block itself obeys consensus rules. However, inclusion is not guaranteed, and public relay may be difficult. Always distinguish a local RPC error, network propagation, and actual block confirmation.

Primary references

Bitcoin Developer Guide — Transactions: https://developer.bitcoin.org/devguide/transactions.html
Bitcoin Core policy source: https://github.com/bitcoin/bitcoin/blob/master/src/policy/policy.cpp

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects