<div dir="ltr"><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">BIP 68 says >= 2:</div></div><i>This specification defines the meaning of sequence numbers for transactions with an nVersion greater than or equal to 2 for which the rest of this specification relies on.</i><div class="gmail_default" style="font-size:small"><font color="#000000" face="arial, helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);">BIP-112 says not < 2</span></font></div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-spacing:0px;border-collapse:collapse;color:rgb(201,209,217);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",system-ui,ui-sans-serif,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-LC1766" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000">// Fail if the transaction's version number is not set high<br>// enough to trigger BIP 68 rules.<br>if (static_cast<uint32_t>(txTo->nVersion) < 2) return false;</font></td></tr></tbody></table><div class="gmail_default" style="font-size:small"><font color="#000000" face="arial, helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);"><br></span></font></div><div class="gmail_default" style="font-size:small"><font color="#000000" face="arial, helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);">A further proof that this needs fix: the flawed upgradable semantic exists in script as well as in the transaction nSeqeunce. we can't really control the transaction version an output will be spent with in the future, so it would be weird/bad to change the semantic in transaction version 3.</span></font></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif"><br></span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif">--</span><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><a href="https://twitter.com/JeremyRubin" target="_blank">@JeremyRubin</a><a href="https://twitter.com/JeremyRubin" target="_blank"></a></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 5, 2021 at 7:36 PM David A. Harding <<a href="mailto:dave@dtrt.org">dave@dtrt.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Fri, Sep 03, 2021 at 08:32:19PM -0700, Jeremy via bitcoin-dev wrote:<br>
> Hi Bitcoin Devs,<br>
> <br>
> I recently noticed a flaw in the Sequence lock implementation with respect<br>
> to upgradability. It might be the case that this is protected against by<br>
> some transaction level policy (didn't see any in policy.cpp, but if not,<br>
> I've put up a blogpost explaining the defect and patching it<br>
> <a href="https://rubin.io/bitcoin/2021/09/03/upgradable-nops-flaw/" rel="noreferrer" target="_blank">https://rubin.io/bitcoin/2021/09/03/upgradable-nops-flaw/</a><br>
<br>
Isn't this why BIP68 requires using tx.version=2?  Wouldn't we just<br>
deploy any new nSequence rules with tx.version>2?<br>
<br>
-Dave<br>
</blockquote></div>