Tier Nolan [ARCHIVE] on Nostr: 📅 Original date posted:2015-08-19 📝 Original message:On Wed, Aug 19, 2015 at ...
📅 Original date posted:2015-08-19
📝 Original message:On Wed, Aug 19, 2015 at 2:15 PM, Btc Drak via bitcoin-dev <
bitcoin-dev at lists.linuxfoundation.org> wrote:
>
> What problem am I missing if we just mask of the offending bits. For my
> own project which uses auxpow (and thus has weird nVersion), I also used
> the bitmasking method to get rid of auxpow version bits before making the
> standard integer comparisons to deploy BIP66 using IsSuperMajority():
>
> if ((block.nVersion & 0xff) >= 4 && CBlockIndex::IsSuperMajority(...))
> { //...}
>
What if version number 257 is used in the future? That would appear to be
a version 1 block and fail the test.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150819/aeb28a8e/attachment.html>
Published at
2023-06-07 15:48:30Event JSON
{
"id": "9bbd5a33639f10c030b4c4542eb5888c134d3aedfa5336667fbc9316fb4ca2a8",
"pubkey": "46986f86b97cc97829a031b03209644d134b939d0163375467f0b1363e0d875e",
"created_at": 1686152910,
"kind": 1,
"tags": [
[
"e",
"33b40cb3a6ef196ed3b584cc0c215cff95814683d4b226bd9e9b25b98d4c9443",
"",
"root"
],
[
"e",
"07e4456342ac9496dc6d9538bb8caf91780a8ce43d56c731d456ef3eda401a11",
"",
"reply"
],
[
"p",
"fdf31024ca0537ed828d895ddc8525f8af023f0dc935a8327a8a496d0d7a9f83"
]
],
"content": "📅 Original date posted:2015-08-19\n📝 Original message:On Wed, Aug 19, 2015 at 2:15 PM, Btc Drak via bitcoin-dev \u003c\nbitcoin-dev at lists.linuxfoundation.org\u003e wrote:\n\n\u003e\n\u003e What problem am I missing if we just mask of the offending bits. For my\n\u003e own project which uses auxpow (and thus has weird nVersion), I also used\n\u003e the bitmasking method to get rid of auxpow version bits before making the\n\u003e standard integer comparisons to deploy BIP66 using IsSuperMajority():\n\u003e\n\u003e if ((block.nVersion \u0026 0xff) \u003e= 4 \u0026\u0026 CBlockIndex::IsSuperMajority(...))\n\u003e { //...}\n\u003e\n\nWhat if version number 257 is used in the future? That would appear to be\na version 1 block and fail the test.\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150819/aeb28a8e/attachment.html\u003e",
"sig": "e36f89cee7a287e151f8faa1d6da2facc58ae76396ef4b63216a80cbadd764d560c8378fd1b83350d1853372ab6d5029aa05253f91cf0155fe973cc5e5ff0a37"
}