What is Nostr?
Sergio Demian Lerner [ARCHIVE] /
npub1fvu…vq7f
2023-06-07 17:49:54
in reply to nevent1q…mz32

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>;
Author Public Key
npub1fvuxqdqg7klqqgy3yy8gdxjv4phu92sll5y8zqm2qe5qdrhxymhqf3vq7f