From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 0E69374 for ; Tue, 22 Mar 2016 10:39:53 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 767A9118 for ; Tue, 22 Mar 2016 10:39:52 +0000 (UTC) Received: by mail-ig0-f176.google.com with SMTP id ig19so102796272igb.0 for ; Tue, 22 Mar 2016 03:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=ToZRzj0NviMliI2t+DmAAU5RQv5eeABu8Cy1axDyAVM=; b=lxIowEKfAog1sso5DM9yuqj+H+BanrnAFARJm4+Pirx1NE6QFbyqqS0SOiGyGsOy5o DTqUODsIZqPy/iSs7bsgCZ7ocCbk8inRO1ABmbjC8dKrdMv+meTmEqNerLgJarbnTOyw QJMFrMNmAdHBG2b209maAtboUVJGVXaGG+u5u7Wfn2sBj0JipsytcAbdcjQpD2fh+OUI sxTxWvwT1uEjoELrIUX+W8xhkpyDtCboVawphKnCphD/LZeGYrkx8EiejawQhm5Uvsk5 W8EZFr1eP+izUjQ2EgNo/jzX0nTPvT6//FNK/fONh6j3quUFyHddLmJGusacTd2ZNPWw SLag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=ToZRzj0NviMliI2t+DmAAU5RQv5eeABu8Cy1axDyAVM=; b=EZa+sVTMheQ7PwxsojxHFdJRl1D7EzTYFApARUS09eUvsOf6jYCcBpoROYcKyfm/Zc d6n0aHJT9ePvXHut9JHUabccFJX759RW1ePZgoju3cF6HPqb6b0iU6GB2WjHOeaXbt8t C/1X6Ax002CTP9dxEQRQE+pmPIn06L7yopNIADcYfLogklvdpELr1UUr+XZjgGIbOblW JeE6sDJ3tTlfRGQ9reP5p7FWldrCWtjjN9HZgPpzkuBR47AmSlgMQW3GW7KAK0V11aGp d7JhWfmG87O+m3Cq4C2KreQG8xxE8+4mZbXUwaQZyts2M8kFPanh9sEhEYQMWOLpPHPF d5JA== X-Gm-Message-State: AD7BkJL3fUxO55SOPcnZENQEp9CioyFLTXINk/juWVzRD4Ub61NcCS//LUaYG2dNXf+x9pa1Lm56PjKN1Xhjgg== MIME-Version: 1.0 X-Received: by 10.50.66.179 with SMTP id g19mr17636386igt.4.1458643191813; Tue, 22 Mar 2016 03:39:51 -0700 (PDT) Received: by 10.107.143.193 with HTTP; Tue, 22 Mar 2016 03:39:51 -0700 (PDT) Received: by 10.107.143.193 with HTTP; Tue, 22 Mar 2016 03:39:51 -0700 (PDT) In-Reply-To: <002e01d18406$e55554e0$affffea0$@xbt.hk> References: <002e01d18406$e55554e0$affffea0$@xbt.hk> Date: Tue, 22 Mar 2016 07:39:51 -0300 Message-ID: From: Sergio Demian Lerner To: jl2012@xbt.hk Content-Type: multipart/alternative; boundary=047d7bdc15b24d5eb9052ea0d563 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,LOTS_OF_MONEY, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org X-Mailman-Approved-At: Tue, 22 Mar 2016 13:39:09 +0000 Cc: bitcoin-dev Subject: Re: [bitcoin-dev] BIP147 minor error X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2016 10:39:53 -0000 --047d7bdc15b24d5eb9052ea0d563 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable My mistake. El mar 22, 2016 3:49 AM, escribi=C3=B3: > Do you mean BIP141? > > > > Your example is an error by BIP141: > > > > 1*4 + 79999*1 =3D 80003 > 80000 > > > > *From:* bitcoin-dev-bounces@lists.linuxfoundation.org [mailto: > bitcoin-dev-bounces@lists.linuxfoundation.org] *On Behalf Of *Sergio > Demian Lerner via bitcoin-dev > *Sent:* Monday, 21 March, 2016 10:51 > *To:* bitcoin-dev > *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* =E2=89=A4 80,000. > > But the code implements: > > if (nSigOps + (nWitSigOps + 3) / 4 > MAX_BLOCK_SIGOPS) > > ... error.... > > Which is not the same. > > > For example: > > nSigOps =3D 1 > nWitSigOps =3D79999 > > Is not an error by BIP definition but it's an error by the implemented > code. > > Regards, Sergio. > --047d7bdc15b24d5eb9052ea0d563 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

My mistake.

El mar 22, 2016 3:49 AM, <jl2012@xbt.hk> escribi=C3=B3:

Do you mean BIP141?=

=C2=A0

Your example is an error by BIP141:

=C2=A0

1*4 + 79999*1 =3D 80003 > 80000

=C2=A0

From: bitcoin-dev-bounces@lis= ts.linuxfoundation.org [mailto:bitcoin-dev-bounces@lists.linuxf= oundation.org] On Behalf Of Sergio Demian Lerner via bitcoin-dev=
Sent: Monday, 21 March, 2016 10:51
To: bitcoin-dev <= ;bitcoin-dev@lists.linuxfoundation.org>
Subject: [bitcoin-= dev] BIP147 minor error

<= /u>=C2=A0

The BIP147 reads:=

Sigop cost is defined. The cost of a sigop in t= raditional script is 4, while the cost of a sigop in witness program is 1. =

The new rule is total sigop cost =E2=89=A4 80,0= 00.

But the code implements:

if (nSigOps + (nWitSigOps + 3) / 4 > MAX_BLOCK_SIGOPS)=

=C2=A0... error....

Whic= h is not the same.


For ex= ample:

nSigOps =3D 1
nWitSigOps =3D79999

Is not an error by= BIP definition but it's an error by the implemented code.

Regards, Sergio.

--047d7bdc15b24d5eb9052ea0d563--