Btc Drak [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 11:31 AM, Jorge Timón <jtimon at jtimon.cc> wrote:
> I don't think just using version=4 for cltv and friends would be a
> problem if it wasn't for the XT/nonXT issue.
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(...))
{ //...}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150819/aeca027e/attachment.html>
Published at
2023-06-07 15:48:30Event JSON
{
"id": "07e4456342ac9496dc6d9538bb8caf91780a8ce43d56c731d456ef3eda401a11",
"pubkey": "fdf31024ca0537ed828d895ddc8525f8af023f0dc935a8327a8a496d0d7a9f83",
"created_at": 1686152910,
"kind": 1,
"tags": [
[
"e",
"33b40cb3a6ef196ed3b584cc0c215cff95814683d4b226bd9e9b25b98d4c9443",
"",
"root"
],
[
"e",
"6132bac76794fed9c7f70a0edcb7eec17304b9b168f6fbe4ec140fb9a4689547",
"",
"reply"
],
[
"p",
"498a711971f8a0194289aee037a4c481a99e731b5151724064973cc0e0b27c84"
]
],
"content": "📅 Original date posted:2015-08-19\n📝 Original message:On Wed, Aug 19, 2015 at 11:31 AM, Jorge Timón \u003cjtimon at jtimon.cc\u003e wrote:\n\n\u003e I don't think just using version=4 for cltv and friends would be a\n\u003e problem if it wasn't for the XT/nonXT issue.\n\n\nWhat problem am I missing if we just mask of the offending bits. For my own\nproject which uses auxpow (and thus has weird nVersion), I also used the\nbitmasking method to get rid of auxpow version bits before making the\nstandard integer comparisons to deploy BIP66 using IsSuperMajority():\n\n if ((block.nVersion \u0026 0xff) \u003e= 4 \u0026\u0026 CBlockIndex::IsSuperMajority(...))\n{ //...}\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150819/aeca027e/attachment.html\u003e",
"sig": "cbf1523612e21e092f5fd415c7583c62a7cc19b53dca8e2947d85c27ec32f8b26153b6b1fa0a70ae3aea49522e5570d5f810ec95a38b3c98e053a65e2e950c90"
}