Can a Consensus-Valid Bitcoin Transaction Be Rejected by the Mempool?
Yes. Bitcoin consensus rules and mempool relay policy serve different purposes. A transaction may satisfy the rules needed for inclusion in a valid block but fail a node's local standards for accepting and forwarding unconfirmed transactions.
For example, a node might reject a transaction because its fee rate is below the local mempool minimum, an output violates dust policy, or its script pattern is nonstandard. Some failures depend on temporary conditions such as congestion or missing unconfirmed parents. Others, such as an invalid signature or spending a nonexistent output, can be genuine validity problems.
A miner may directly include a consensus-valid but nonstandard transaction in a block. Other fully validating nodes assess the block under consensus rules, not the miner's or their own mempool preferences. This does not mean every nonstandard transaction will be mined; miners have their own selection policies and economic incentives.
To diagnose a rejection, use Bitcoin Core's testmempoolaccept and examine the returned reason on the specific node version. Do not treat local acceptance as confirmation or as proof that every peer will relay the transaction.
Primary references
Bitcoin Core policy source: https://github.com/bitcoin/bitcoin/blob/master/src/policy/policy.cpp
Bitcoin Core RPC reference: https://bitcoincore.org/en/doc/
