{"type":"rich","version":"1.0","title":"Jeremy [ARCHIVE] wrote","author_name":"Jeremy [ARCHIVE] (npub1q8…8qwta)","author_url":"https://yabu.me/npub1q86n5vtxkwerzwfqza3hwls8pl8764244464talfqy2vpj0qaz6q38qwta","provider_name":"njump","provider_url":"https://yabu.me","html":"📅 Original date posted:2021-09-06\n📝 Original message:BIP 68 says \u003e= 2:\n*This specification defines the meaning of sequence numbers for\ntransactions with an nVersion greater than or equal to 2 for which the rest\nof this specification relies on.*\nBIP-112 says not \u003c 2\n// Fail if the transaction's version number is not set high\n// enough to trigger BIP 68 rules.\nif (static_cast\u003cuint32_t\u003e(txTo-\u003enVersion) \u003c 2) return false;\n\nA further proof that this needs fix: the flawed upgradable semantic exists\nin script as well as in the transaction nSeqeunce. we can't really control\nthe transaction version an output will be spent with in the future, so it\nwould be weird/bad to change the semantic in transaction version 3.\n\n--\n@JeremyRubin \u003chttps://twitter.com/JeremyRubin\u003e\n\u003chttps://twitter.com/JeremyRubin\u003e\n\n\nOn Sun, Sep 5, 2021 at 7:36 PM David A. Harding \u003cdave at dtrt.org\u003e wrote:\n\n\u003e On Fri, Sep 03, 2021 at 08:32:19PM -0700, Jeremy via bitcoin-dev wrote:\n\u003e \u003e Hi Bitcoin Devs,\n\u003e \u003e\n\u003e \u003e I recently noticed a flaw in the Sequence lock implementation with\n\u003e respect\n\u003e \u003e to upgradability. It might be the case that this is protected against by\n\u003e \u003e some transaction level policy (didn't see any in policy.cpp, but if not,\n\u003e \u003e I've put up a blogpost explaining the defect and patching it\n\u003e \u003e https://rubin.io/bitcoin/2021/09/03/upgradable-nops-flaw/\n\u003e\n\u003e Isn't this why BIP68 requires using tx.version=2?  Wouldn't we just\n\u003e deploy any new nSequence rules with tx.version\u003e2?\n\u003e\n\u003e -Dave\n\u003e\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20210905/036b421e/attachment.html\u003e"}
