<oembed><type>rich</type><version>1.0</version><author_name>npub1r3san9v5njl6798hvauyu9ntm6r9c7u8s0t65wls58gpfdcvqp5sa48d0u</author_name><author_url>https://nostr.ae/npub1r3san9v5njl6798hvauyu9ntm6r9c7u8s0t65wls58gpfdcvqp5sa48d0u</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2015-06-01&#xA;📝 Original message:I have written a reference implementation and BIP draft for a soft-fork&#xA;change to the consensus-enforced behaviour of sequence numbers for the&#xA;purpose of supporting transaction replacement via per-input relative&#xA;lock-times. This proposal was previously discussed on the mailing list in&#xA;the following thread:&#xA;&#xA;http://sourceforge.net/p/bitcoin/mailman/message/34146752/&#xA;&#xA;In short summary, this proposal seeks to enable safe transaction&#xA;replacement by re-purposing the nSequence field of a transaction input to&#xA;be a consensus-enforced relative lock-time.&#xA;&#xA;The advantages of this approach is that it makes use of the full range of&#xA;the 32-bit sequence number which until now has rarely been used for&#xA;anything other than a boolean control over absolute nLockTime, and it does&#xA;so in a way that is semantically compatible with the originally envisioned&#xA;use of sequence numbers for fast mempool transaction replacement.&#xA;&#xA;The disadvantages are that external constraints often prevent the full&#xA;range of sequence numbers from being used when interpreted as a relative&#xA;lock-time, and re-purposing nSequence as a relative lock-time precludes its&#xA;use in other contexts. The latter point has been partially addressed by&#xA;having the relative lock-time semantics be enforced only if the&#xA;most-significant bit of nSequence is set. This preserves 31 bits for&#xA;alternative use when relative lock-times are not required.&#xA;&#xA;The BIP draft can be found at the following gist:&#xA;&#xA;https://gist.github.com/maaku/be15629fe64618b14f5a&#xA;&#xA;The reference implementation is available at the following git repository:&#xA;&#xA;https://github.com/maaku/bitcoin/tree/sequencenumbers&#xA;&#xA;I request that the BIP editor please assign a BIP number for this work.&#xA;&#xA;Sincerely,&#xA;Mark Friedenbach&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150601/14698846/attachment.html&gt;</html></oembed>