From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id A9AC7C0176 for ; Sat, 23 May 2020 15:24:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9E92287AD5 for ; Sat, 23 May 2020 15:24:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JU-lC3bXIABx for ; Sat, 23 May 2020 15:24:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by whitealder.osuosl.org (Postfix) with ESMTPS id C7FE987928 for ; Sat, 23 May 2020 15:24:41 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id e1so13166876wrt.5 for ; Sat, 23 May 2020 08:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=sYzt6mij8IhbNzZ78yNCzQ/dhFC2nlgTbABxWN/W7PM=; b=SMV3jivXt7jRqUHFgThkN/r25aPCYayW0t+ecCuXraFGqqX2EhSq+uIBClCK4s8hNa Ei1giNUBwTuuIU2V6wetHAyTMQc6Xs8VLkWiilWDRh3XimzunAJJcacsZ6q1ytn/KGmp 67TLoaa2m8HHVgGEEasBfPrFiTRX0+k31GtLOpmj03guawiHm3X6j8YQpZ0SJ8eJRxQ8 R4uAiBRI21JFYqXR9L0p/aW3nADwdOJkBUV+q8yC1SvE1HiJsqv1o6EceTtgQXkE/5Qq aGyO/LoyPjOaKoqE2G+8/nypVGJr6Tn3GNwT9MQO+daT3ubWySp/ej00Quu/fXogSmUZ uiyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=sYzt6mij8IhbNzZ78yNCzQ/dhFC2nlgTbABxWN/W7PM=; b=op9dbIBVYN8eXDE8eg2EUPmboUMDXJU98KfoZ3kGyX4i8YhfcXyGRr3U/M40R4eUCN 9/3/yCmkAGQ/UQZCMTRPTE/iDinMeJ+leaM0lGXm5Buk3QaUvMKPB9bzGnhM9oxHtPe/ QCfbnkMfDGPE8zUL5J0Tx8U77e6jLWeIlRpcsWgVEFqAKcPPkyikTXo0vdBOlsWxR3FS MntMOQ7ciD8277Ph+Vqy9Kvgxp3DAMIJnro6tYQwfNpWItzHQb9aVwzKcDf6TqdUoB37 gnkRYPyTbtXcsvtZvTPbIhRqrnExaIBqxi0m/ByAbJ/NgZYEpsVwraS1U9z2p0Gm47wI wM4A== X-Gm-Message-State: AOAM532NLpZxPy4mE415OmvhKIiHWQ4er4W0fAqV35RvsOXfzWUDyWfz vNmRp3zwnwve2bHQYKuyRM1vUUek7TVGnj3+IR6GaVR69cM= X-Google-Smtp-Source: ABdhPJwalXeBY7VHddlfzA8EKxl28rLrKLQCzs1kQc3Nkze0wu9AM8ryHnG4jRba8eqm2GvR+mcEDVlhGfFyCW+pdDM= X-Received: by 2002:a5d:604b:: with SMTP id j11mr7739083wrt.193.1590247480243; Sat, 23 May 2020 08:24:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sanders Date: Sat, 23 May 2020 11:24:28 -0400 Message-ID: To: Thomas Voegtlin , Bitcoin Protocol Discussion Content-Type: multipart/alternative; boundary="0000000000002a3a4505a65258c0" Subject: Re: [bitcoin-dev] MIN_STANDARD_TX_NONWITNESS_SIZE and OP_RETURN X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2020 15:24:42 -0000 --0000000000002a3a4505a65258c0 Content-Type: text/plain; charset="UTF-8" AFAIU the number was picked to protect against CVE-2017-12842 covertly. See: https://github.com/bitcoin/bitcoin/pull/16885 which updated the text to explicitly mention this fact. On Sat, May 23, 2020 at 11:20 AM Thomas Voegtlin via bitcoin-dev < bitcoin-dev@lists.linuxfoundation.org> wrote: > Hello list, > > I have been trying to CPFP a transaction using OP_RETURN, because the > remaining output value would have been lower than the dust threshold. > > The scriptPubkey of the output was OP_RETURN + OP_0, and there was a > single p2wsh input. > > The result is a 60 bytes transaction (without witness), that gets > rejected because it is lower than MIN_STANDARD_TX_NONWITNESS_SIZE, which > is equal to 82 bytes. > > Why is that value so high? Would it make sense to lower it to 60? > > > Thomas > _______________________________________________ > bitcoin-dev mailing list > bitcoin-dev@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev > --0000000000002a3a4505a65258c0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
AFAIU the number was picked to protect against=C2=A0CVE-20= 17-12842 covertly. See:=C2=A0https://github.com/bitcoin/bitcoin/pull/16885=C2=A0wh= ich updated the text to explicitly mention this fact.

On Sat, May 23, 2020= at 11:20 AM Thomas Voegtlin via bitcoin-dev <bitcoin-dev@lists.linuxfoundation.org>= ; wrote:
Hello l= ist,

I have been trying to CPFP a transaction using OP_RETURN, because the
remaining output value would have been lower than the dust threshold.

The scriptPubkey of the output was OP_RETURN + OP_0, and there was a
single p2wsh input.

The result is a 60 bytes transaction (without witness), that gets
rejected because it is lower than MIN_STANDARD_TX_NONWITNESS_SIZE, which is equal to 82 bytes.

Why is that value so high? Would it make sense to lower it to 60?


Thomas
_______________________________________________
bitcoin-dev mailing list
= bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mail= man/listinfo/bitcoin-dev
--0000000000002a3a4505a65258c0--