Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 15E2ECA5 for ; Fri, 12 Apr 2019 15:50:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id C3E9A86E for ; Fri, 12 Apr 2019 15:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555084198; bh=mPUEthuv7kmx842mbEC58Itd+iOCBKiUzfFosXXBtuY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=iLlNC+r9l+c6EcHoJpFFsmns2DG4sJqx5uEnoXzhPZHc07RcalVcwzv/oKXt2eE2P wphhM+nqE6Etk7IpDIYdySm2VeCwd/0y/8x6gFi0vMSjDl1zTIbGH8pU/tgGPTllDG ddt4pfq2QbkLym+ywNoq1LbFCFT9YgmqO/7V6gOg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [77.56.41.160] ([77.56.41.160]) by web-mail.gmx.net (3c-app-gmx-bs77.server.lan [172.19.170.225]) (via HTTP); Fri, 12 Apr 2019 17:49:57 +0200 MIME-Version: 1.0 Message-ID: From: simondev1 To: ZmnSCPxj@protonmail.com Content-Type: text/html; charset=UTF-8 Date: Fri, 12 Apr 2019 17:49:57 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:BvcUnXTgLNd+ZacqKupnEbSp3Ds4EKjctL2q7KcocyopEqFP0TLa1b0Gq2XfvaYhkjZBq lGo4c4xekPkTFKYL8Un+oiwp6ji/5V5TTed4sCu9hUqnsqg8Cv0aSKB/muKm1rEXoHlOOWK9ghTT Qr+oDfvAgd5Rn9htlkCIZRB7KwEWgZXQGbUZ6xWaOI3PYEpsbR63X/KVFCCqFVSbrDVJEmn09h/k nw1Gt0wmZZZW3wSUPFxhdUWqnNaQ3QCLKNqr0l9rtMLS+meSQZwRT/ybZJUNeWvlQevRQY6lPeVq V0= X-UI-Out-Filterresults: notjunk:1;V03:K0:aQRO3Jbc2MA=:oRK1HQh+hsEqrrAXHpugsU F9eFw/jrca3hV5E7uHeuIFGFfJFoXwGGtICjdmaS5XyJOf3b0k8ye8tOgN5+whOZQUe33ddSg WWjXps/ZdV5ZQYc7NhuGHprHV9E+6hpRNI/SKKue1+hJMgdzSDF08NBc+n41cptFZaHmXwByp 8/DsTmO0dhHmXD+ZbFvOTONB8JADnWt+nUdQmVqweznk/IgK1MvGVBP7/eRBvF+vOlIvVS6c3 Cfl1VnR15Bi5/uFVVzODx9/l8QDhlxny9aOo4IFaKRKRfSH1tA3DcM21z6FeEmllkwPIHvxCw Ij0LpVp1FmZ36slDxBc78WuOvciTummhj6v4Iixk4V0qEv21qg/P8lvrWlni3lInUmtF3oWMS U/iwtm2i9+dC6cwayBjMCmWmq2kYjuMzPLYBBuIulFEMkjZkwcWeQt7w5DbYOh32RPZ2Ap2SE rOSefWlDIQXi1LFy4pB7n9O4OllTGMQD/Jr2Ju0CQQTQ2EiJ5qcf4aLCazDWhpppz2sRHgyzq SE8h2+/PhB3jBwQFLBXrQQbGXpVnCM+6/PEEi1iL88tntysAFIx/RaPKv4qKnPtQgj9mR45CK jSNdky5+dKYsk= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, HTML_MESSAGE, MIME_HTML_ONLY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org X-Mailman-Approved-At: Sun, 14 Apr 2019 12:59:16 +0000 Cc: Bitcoin Protocol Discussion Subject: Re: [bitcoin-dev] new BIP: Self balancing between excessively low/high fees and block size X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Apr 2019 15:50:04 -0000
True in case of hardfork to remove the current limit we still need a limit of lets say 8 Mbyte. To achive a valid 8MB block with this formula, the block would need to contain about 8 million btc fees. This will never happen. So probably a hard limit of 8MB would be good to avoid 1TB attacks.
 
Regards,
Gesendet: Montag, 08. April 2019 um 02:55 Uhr
Von: "ZmnSCPxj" <ZmnSCPxj@protonmail.com>
An: simondev1 <random@gmx.ch>, "Bitcoin Protocol Discussion" <bitcoin-dev@lists.linuxfoundation.org>
Betreff: Re: [bitcoin-dev] new BIP: Self balancing between excessively low/high fees and block size
Good morning simondev1,

It seems the algorithm would greatly increase validation time.
In particular, if the current limit is removed (as in hardforked proposal) then a 1Tb block can be used to attack the network, since sorting would require looking through the entire block.
Thus, validation time would still limit the practical block sizes that can be deployed with this.

Regards,
ZmnSCPxj

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, April 7, 2019 4:50 PM, simondev1 via bitcoin-dev <bitcoin-dev@lists.linuxfoundation.org> wrote:

> Dear bitcoin developers,
>  
> New BIP: https://github.com/bitcoin/bips/pull/774
>  
> ==Abstract==
> Logarithm of transaction fee limits block size.
>  
> ==Motivation==
> Keep block space small.
> Waste less with spam transactions.
> Auto balance Fees: Increase very low fees, Descrease very high fees.
> Allow larger size when sender pays a lot.
> Allow wallets to calculate/display how much average free block space there is for each fee price.
> Allow senders to have more control about how the fee/priority of their transaction will behave, especially in the case of increased adoption in the future.
>  
> ==Specification==
> Every transaction has to fit into the following block space:
> Input variable 'FeeInSatoshiPerByte': Must be positive or 0
> type: double
> unit: Satishi per byte
> Output:
> type: uint
> unit: bytes
> Formula:
> floor( log10( 1.1 + FeeInSatoshiPerByte ) * 1024 * 1024 )
>  
> ==Implementation==
> Sort transactions by FeeInSatoshiPerByte (lowest first)
> For each transaction starting from lowest FeeInSatoshiPerByte: Sum up the bytes of space used so far. Check if summed up bytes of space used so far is smaller or equal than the formula result.
> If this is valid for each transaction then the blocksize is valid.
>  
> ==Backward compatibility==
> Soft fork: If applied AND old hardcoded block size limit is kept.
> Hard fork: If applied AND old hardcoded block size limit is removed.
>
> Regards, simondev1
>