jl2012 at xbt.hk [ARCHIVE] on Nostr: 📅 Original date posted:2016-03-22 📝 Original message:Do you mean BIP141? Your ...
📅 Original date posted:2016-03-22
📝 Original message:Do you mean BIP141?
Your example is an error by BIP141:
1*4 + 79999*1 = 80003 > 80000
From: bitcoin-dev-bounces at lists.linuxfoundation.org [mailto:bitcoin-dev-bounces at lists.linuxfoundation.org] On Behalf Of Sergio Demian Lerner via bitcoin-dev
Sent: Monday, 21 March, 2016 10:51
To: bitcoin-dev <bitcoin-dev at lists.linuxfoundation.org>
Subject: [bitcoin-dev] BIP147 minor error
The BIP147 reads:
Sigop cost is defined. The cost of a sigop in traditional script is 4, while the cost of a sigop in witness program is 1.
The new rule is total sigop cost ≤ 80,000.
But the code implements:
if (nSigOps + (nWitSigOps + 3) / 4 > MAX_BLOCK_SIGOPS)
... error....
Which is not the same.
For example:
nSigOps = 1
nWitSigOps =79999
Is not an error by BIP definition but it's an error by the implemented code.
Regards, Sergio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20160322/5be2f7b5/attachment.html>
Published at
2023-06-07 17:49:54Event JSON
{
"id": "6dc5224095c9acf30d994b763568612e6d4f84e61888864e44e11e29f4e82d41",
"pubkey": "b61e2e7ccbf4abd7f49715c62f4ac7a93cbdd5ead0316279c5f5fe9b18dd0aaa",
"created_at": 1686160194,
"kind": 1,
"tags": [
[
"e",
"6fcc1c6ae1e2493357c56707058f1ed2bed5772f0c438f028851e80fab433a39",
"",
"root"
],
[
"e",
"f2870dd449933e80ae16167cc564144279613b1c72f8d9f9a7269870cbf3ffa0",
"",
"reply"
],
[
"p",
"4b38603408f5be002091210e869a4ca86fc2aa1ffd0871036a0668068ee626ee"
]
],
"content": "📅 Original date posted:2016-03-22\n📝 Original message:Do you mean BIP141?\n\n \n\nYour example is an error by BIP141:\n\n \n\n1*4 + 79999*1 = 80003 \u003e 80000\n\n \n\nFrom: bitcoin-dev-bounces at lists.linuxfoundation.org [mailto:bitcoin-dev-bounces at lists.linuxfoundation.org] On Behalf Of Sergio Demian Lerner via bitcoin-dev\nSent: Monday, 21 March, 2016 10:51\nTo: bitcoin-dev \u003cbitcoin-dev at lists.linuxfoundation.org\u003e\nSubject: [bitcoin-dev] BIP147 minor error\n\n \n\nThe BIP147 reads:\n\nSigop cost is defined. The cost of a sigop in traditional script is 4, while the cost of a sigop in witness program is 1. \n\nThe new rule is total sigop cost ≤ 80,000. \n\nBut the code implements:\n\nif (nSigOps + (nWitSigOps + 3) / 4 \u003e MAX_BLOCK_SIGOPS)\n\n ... error....\n\nWhich is not the same.\n\n\nFor example:\n\nnSigOps = 1\nnWitSigOps =79999\n\nIs not an error by BIP definition but it's an error by the implemented code.\n\nRegards, Sergio.\n\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20160322/5be2f7b5/attachment.html\u003e",
"sig": "351f0f66019eec1a48b7cccf64ed593acc9a430cda025ee0eafd2acc702ed1edb2da4cd6919a267720bbab2fc4f298a24e242b232a0fab861f2673092fc3d16f"
}