<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:2018-05-16&#xA;📝 Original message:Luke Dashjr &lt;luke at dashjr.org&gt; writes:&#xA;&gt; An OP_TRUE-only script with a low value seems like a good example of where the &#xA;&gt; weight doesn&#39;t reflect the true cost: it uses a UTXO forever, while only &#xA;&gt; costing a weight of 4.&#xA;&gt;&#xA;&gt; I like Johnson&#39;s idea to have some template (perhaps OP_2-only, to preserve &#xA;&gt; expected behaviour of OP_TRUE-only) that when combined with a 0-value is &#xA;&gt; always valid only if spent in the same block.&#xA;&gt;&#xA;&gt; I wonder if it would make sense to actually tie it to a transaction version &#xA;&gt; bit, such that when the bit is set, the transaction is serialised with +1 on &#xA;&gt; the output count and 00000000000000000181 is simply injected into the &#xA;&gt; transaction hashing... But for now, simply having a consensus rule that a bit &#xA;&gt; MUST be set for the expected behaviour, and the bit may ONLY be set when the &#xA;&gt; last output is exactly 00000000000000000181, would allow us to code the &#xA;&gt; transaction serialisation up later. (Maybe it should be the first output &#xA;&gt; instead of the last... Is there any legitimate reason one would have multiple &#xA;&gt; such dummy outputs?)&#xA;&#xA;Your zero-val-OP_TRUE-can&#39;t-be-spent-after-same-block SF is interesting,&#xA;but if we want a SF just give us SIGHASH_NOINPUT and we&#39;ll not need this&#xA;at all (though others still might).  It&#39;s nicer than the previous&#xA;discussions on after-the-fact feebumping[1] though.&#xA;&#xA;Meanwhile, our best mitigation against UTXO bloat is:&#xA;1. Make the fees as low as possible[2]&#xA;2. Put a CSV delay on the to-remote output (currently there&#39;s asymmetry)&#xA;3. Attach more value to the OP_TRUE output, say 1000 satoshi.&#xA;&#xA;But turns out we probably don&#39;t want an OP_TRUE output nor P2SH, because&#xA;then the spending tx would be malleable.  So P2WSH is is.&#xA;&#xA;This brings us another theoretical problem: someone could spend our&#xA;OP_TRUE with a low-fee non-RBF tx, and we&#39;d not be able to use it to&#xA;CPFP the tx.  It&#39;d be hard to do, but possible.  I think the network&#xA;benefits from using OP_TRUE (anyone can clean, and size, vs some&#xA;only-known-to-me pubkey) outweighs the risk, but it&#39;d be nice if OP_TRUE&#xA;P2WSH spends were always considered RBF.&#xA;&#xA;Thanks,&#xA;Rusty.&#xA;[1] https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-April/015864.html&#xA;[2] Because bitcoin core use legacy measurements, this is actually 253&#xA;satoshi per kilosipa for us, see https://github.com/ElementsProject/lightning/commit/2e687b9b352c9092b5e8bd4a688916ac50b44af0</html></oembed>