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 Anti-Fee-Sniping Locktime Prevent Bitcoin Reorganizations?

permalink THAMER
#anti-fee-sniping#bitcoin#nlocktime#reorganization

No. Anti-fee-sniping locktime can discourage a particular mining strategy, but it does not prevent Bitcoin chain reorganizations.

A wallet may set a recent block-height nLockTime on a new transaction. When an input's nSequence makes that locktime effective, the transaction cannot be included in a block at a height that fails its locktime requirement. This can make the transaction unavailable to a miner attempting to replace a recent block at an earlier height and capture its fees.

That is a limited transaction-eligibility rule, not a guarantee about miners' behavior. Miners can still produce competing blocks, and the network still selects the valid chain with the most accumulated proof of work. Other transactions may remain eligible for a competing block.

For payment safety: distinguish a transaction observed in a mempool from one confirmed in the active chain. Choose confirmation requirements according to risk, and handle reorganizations in wallet or merchant software.

Primary references

Bitcoin Developer Reference — Transactions: https://developer.bitcoin.org/reference/transactions.html

Bitcoin whitepaper: https://bitcoin.org/bitcoin.pdf

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