Expiring HTLCs without free relay

Posted by josh

Aug 11, 2026/18:11 UTC

In the discussion of blockchain transaction protocols, specifically within the Bitcoin Improvement Proposal 68 (BIP68), there is a nuanced analysis of how transaction sequences and lock times are managed. The designation R refers to the lowest 16 bits of the nSequence field in a transaction, following the standard set by BIP68 for relative timelocks. This bit spacing aligns with the normal allocation from bit 1 to bit 15 of nSequence.

Further examination of transaction handling reveals a strategy to manipulate the nLockTime parameter to enforce a minimum threshold without restricting its maximum possible value. By deploying a secondary transaction (Tx2) that utilizes bit 21 alongside an nLockTime, it is ensured that the primary transaction (Tx1) must be processed before the nLockTime of Tx2 minus a variable amount greater than or equal to 100. If Tx1 is not included within this specific timeframe, Tx2 becomes invalid, setting a de facto expiration time for Tx1 based on these parameters.

The approach effectively binds the 'expiry' of Tx1 to its own nLockTime, which is predetermined and signed beforehand. This mechanism ensures that regardless of when Tx1 is actually included in a block, its validity is constrained by the nLockTime setting, thereby influencing the timeline for its inclusion and preventing delays beyond the established limit. This method showcases a strategic use of transaction timing controls to ensure timely processing within the blockchain network.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback