Sergio Demian Lerner [ARCHIVE] on Nostr: đ
Original date posted:2016-03-21 đ Original message:The BIP147 reads: *Sigop ...
đ
Original date posted:2016-03-21
đ Original message: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/20160320/74fe80fb/attachment.html>
Published at
2023-06-07 17:49:54Event JSON
{
"id": "f2870dd449933e80ae16167cc564144279613b1c72f8d9f9a7269870cbf3ffa0",
"pubkey": "4b38603408f5be002091210e869a4ca86fc2aa1ffd0871036a0668068ee626ee",
"created_at": 1686160194,
"kind": 1,
"tags": [
[
"e",
"6fcc1c6ae1e2493357c56707058f1ed2bed5772f0c438f028851e80fab433a39",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "đ
Original date posted:2016-03-21\nđ Original message:The BIP147 reads:\n\n*Sigop cost* is defined. The cost of a sigop in traditional script is 4,\nwhile 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:\nif (nSigOps + (nWitSigOps + 3) / 4 \u003e MAX_BLOCK_SIGOPS)\n ... error....\n\nWhich is not the same.\n\nFor example:\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-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20160320/74fe80fb/attachment.html\u003e",
"sig": "65e2505557434b767a2e8ca71b4b0b9f97c76f0c2cc794a8d7ffebaf9df976905c05e0f786d80477fbef3225e83576006bfee7e16cdc98da2b03df668c1debe0"
}