<oembed><type>rich</type><version>1.0</version><author_name>npub1zw7cc8z78v6s3grujfvcv3ckpvg6kr0w7nz9yzvwyglyg0qu5sjsqhkhpx</author_name><author_url>https://nostr.ae/npub1zw7cc8z78v6s3grujfvcv3ckpvg6kr0w7nz9yzvwyglyg0qu5sjsqhkhpx</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2015-05-15&#xA;📝 Original message:Tier Nolan &lt;tier.nolan at gmail.com&gt; writes:&#xA;&gt; On Sat, May 9, 2015 at 4:36 AM, Gregory Maxwell &lt;gmaxwell at gmail.com&gt; wrote:&#xA;&gt;&#xA;&gt;&gt; An example would&#xA;&gt;&gt; be tx_size = MAX( real_size &gt;&gt; 1,  real_size + 4*utxo_created_size -&#xA;&gt;&gt; 3*utxo_consumed_size).&#xA;&gt;&#xA;&gt;&#xA;&gt; This could be implemented as a soft fork too.&#xA;&gt;&#xA;&gt; * 1MB hard size limit&#xA;&gt; * 900kB soft limit&#xA;&#xA;I like this too.&#xA;&#xA;Some tweaks:&#xA;&#xA;1) Nomenclature: call tx_size &#34;tx_cost&#34; and real_size &#34;tx_bytes&#34;?&#xA;&#xA;2) If we have a reasonable hard *byte* limit, I don&#39;t think that we need&#xA;   the MAX().  In fact, it&#39;s probably OK to go negative.&#xA;&#xA;3) ... or maybe not, if any consumed UTXO was generated before the soft&#xA;   fork (reducing Tier&#39;s perverse incentive).&#xA;&#xA;4) How do we measure UTXO size?  There are some constant-ish things in&#xA;   there (eg. txid as key, height, outnum, amount).  Maybe just add 32&#xA;   to scriptlen?&#xA;&#xA;5) Add a CHECKSIG cost.  Naively, since we allow 20,000 CHECKSIGs and&#xA;   1MB blocks, that implies a cost of 50 bytes per CHECKSIG (but counted&#xA;   correctly, unlike now).   &#xA;&#xA;This last one implies that the initial cost limit would be 2M, but in&#xA;practice probably somewhere in the middle.&#xA;&#xA;  tx_cost = 50*num-CHECKSIG&#xA;                + tx_bytes&#xA;                + 4*utxo_created_size&#xA;                - 3*utxo_consumed_size&#xA;&#xA;&gt; A 250 byte transaction with 2 inputs and 2 outputs would have an adjusted&#xA;&gt; size of 252 bytes.&#xA;&#xA;Now cost == 352.&#xA;&#xA;Cheers,&#xA;Rusty.</html></oembed>