<oembed><type>rich</type><version>1.0</version><author_name>npub1s4lj77xuzcu7wy04afcr487f0r3za0f8n2775xrpkld2sv639mjqsd44kw</author_name><author_url>https://nostr.ae/npub1s4lj77xuzcu7wy04afcr487f0r3za0f8n2775xrpkld2sv639mjqsd44kw</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2015-07-21&#xA;📝 Original message:On Mon, Jul 20, 2015 at 4:55 PM, Gregory Maxwell &lt;gmaxwell at gmail.com&gt; wrote:&#xA;&#xA;&gt; On Mon, Jul 20, 2015 at 7:10 PM, Gavin Andresen via bitcoin-dev&#xA;&gt; &lt;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&gt; &gt; Mitigate a potential CPU exhaustion denial-of-service attack by limiting&#xA;&gt; &gt; the maximum size of a transaction included in a block.&#xA;&gt;&#xA;&gt; This seems like a fairly indirect approach. The resource being watched&#xA;&gt; for is not the size (otherwise two transactions for 200k would be&#xA;&gt; strictly worse than one 200k transactions) but the potential of N^2&#xA;&gt; costs related to repeated hashing in checksig; which this ignores.&#xA;&gt;&#xA;&#xA;Yes.  The tradeoff is implementation complexity: it is trivial to check&#xA;transaction size,&#xA;not as trivial to count signature operations, because&#xA;number-of-bytes-in-transaction&#xA;doesn&#39;t require any context.&#xA;&#xA;But I would REALLY hate myself if in ten years a future version of me was&#xA;struggling to&#xA;get consensus to move away from some stupid 100,000 byte transaction size&#xA;limit&#xA;I imposed to mitigate a potential DoS attack.&#xA;&#xA;So I agree, a limit on sigops is the right way to go. And if that is being&#xA;changed,&#xA;might as well accurately count exactly how many sigops a transaction&#xA;actually&#xA;requires to be validated...&#xA;&#xA;-- &#xA;--&#xA;Gavin Andresen&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150721/258a0bc6/attachment.html&gt;</html></oembed>