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 17:36:59Event JSON
{
"id": "00e82b7c4df2dcbc2cec2aab2cf2ceafeb55e8204e56817830a8d82eafe900ae",
"pubkey": "46986f86b97cc97829a031b03209644d134b939d0163375467f0b1363e0d875e",
"created_at": 1686159419,
"kind": 1,
"tags": [
[
"e",
"7b6db0ce13f47e3b2db7907716169da0107cc63b6d57e20477da59a8b07dbb21",
"",
"root"
],
[
"e",
"75a61b2e1169d8bbcd53cb6600247860c84fa86835aeed73dc1c4d170eb8628a",
"",
"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": "bd4dca101b6303cd97961da27f9fe51c42d26cf7c7d726e0c4d450fe442e210b810100c764cd108f9b98f067166d0bea3d40a7615a410e8525fbd45597da99c5"
}