bitcoin-dev

Making OP_TRUE standard?

Making OP_TRUE standard?

Original Postby Johnson Lau

Posted on: May 9, 2018 17:56 UTC

In a Bitcoin-dev post, Rusty Russell discusses the problem of predicting future fees in the lightning protocol.

To solve this issue, he suggests creating a standard for "0 fee tx with exactly one OP_TRUE output." This would ensure that CPFP is always needed and the OP_TRUE output won't pollute the UTXO set. However, due to CSV delays on outputs, they would have to P2SH it as a raw 'OP_TRUE' is non-standard. Russell asks if there are any reasons not to suggest such a policy change.Another suggestion made in response to the problem is to use ANYONECANPAY to sign the tx, which would allow adding more inputs for fees without asking for any protocol change. While this approach results in a bigger total tx size than the OP_TRUE approach, it offers greater flexibility. In the long-term, the ideal solution may be to have a more flexible SIGHASH system to allow people to add more inputs and outputs easily.