Seems like a good idea to be clear up front on the nversion requirements even if we’re relying on the implementation-as-spec aspects of the bips.
clarify bip68 and bip112 description of required transaction versions #1542
pull instagibbs wants to merge 1 commits into bitcoin:master from instagibbs:bip68_112_nversion changing 2 files +2 −2-
instagibbs commented at 5:58 pm on January 22, 2024: member
-
clarify bip68 and bip112 description of required transaction versions 6e8a11e8a1
-
dergoegge approved
-
dergoegge commented at 6:03 pm on January 22, 2024: memberACK 6e8a11e8a16113e4c17b3309875f08696b46bfb0
-
Christewart approved
-
in bip-0068.mediawiki:28 in 6e8a11e8a1
24@@ -25,7 +25,7 @@ The transaction nLockTime is used to prevent the mining of a transaction until a 25 26 ==Specification== 27 28-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. 29+This specification defines the meaning of sequence numbers for transactions with an nVersion greater than or equal to 2, or any negative version, for which the rest of this specification relies on.
vostrnad commented at 10:03 pm on January 22, 2024:0This specification defines the meaning of sequence numbers for transactions with an nVersion greater than or equal to 2 when interpreted as an unsigned little-endian integer, for which the rest of this specification relies on.
instagibbs commented at 1:22 pm on April 29, 2024:leaving as-is unless people feel stronglyin bip-0112.mediawiki:32 in 6e8a11e8a1
28@@ -29,7 +29,7 @@ When executed, if any of the following conditions are true, the script interpret 29 * the stack is empty; or 30 * the top item on the stack is less than 0; or 31 * the top item on the stack has the disable flag (1 << 31) unset; and 32-** the transaction version is less than 2; or 33+** the transaction version is non-negative and less than 2, i.e. 0 or 1; or
vostrnad commented at 10:03 pm on January 22, 2024:0** the transaction version is less than 2 when interpreted as an unsigned little-endian integer; or
instagibbs commented at 1:22 pm on April 29, 2024:leaving as-is unless people feel stronglyvostrnad commented at 10:03 pm on January 22, 2024: contributorIt seems to me that being explicit about how to interpret the version bytes is preferable to implicitly treating it as a signed integer and then having to worry about negative versions.Roasbeef commented at 1:01 am on April 23, 2024: contributormurchandamus added the label Proposed BIP modification on Apr 29, 2024murchandamus added the label Pending acceptance on Apr 29, 2024murchandamus commented at 1:12 pm on April 29, 2024: contributor@instagibbs, this PR has had unaddressed review comments for three months. Are you still working on this?instagibbs commented at 1:21 pm on April 29, 2024: memberI’m not planning on changing anything further unless people feel strongly about @vostrnad ’s suggestions(which seem fine to me as well)Christewart commented at 1:24 pm on April 29, 2024: contributorFWIW, i prefer @instagibbs ’s current wording.vostrnad commented at 1:48 pm on April 29, 2024: contributorTo elaborate: as is, the BIP implicitly treats the version as an unsigned integer. This PR switches to (still implicitly) treating it as a signed integer. My proposed changes would explicitly treat it as an unsigned integer. Given that Bitcoin Core will likely switch from interpreting the version as signed to unsigned (https://github.com/bitcoin/bitcoin/pull/29325), having it unsigned here as well seems like the best way forward (and being explicit about it is a strict improvement in any case).jonatack commented at 6:39 pm on May 16, 2024: member@NicolasDorier mind weighing in here?Aldocapurro approvedinstagibbs commented at 2:02 pm on October 29, 2024: memberclosing, I think @vostrnad has right way forward, anyone can grab itinstagibbs closed this on Oct 29, 2024
jonatack added the label Up for grabs on Oct 29, 2024
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 18:10 UTC
This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 18:10 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me