You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to support v3 commitments in lightning, we need to use P2A
(pay-to-anchor) outputs, which are currently rejected by our script
interpreter.
See bitcoin/bitcoin#30352 where this output
type was introduced to `bitcoind`. Their amount can be set to dust
with bitcoin/bitcoin#30239.
Both of those changes are available in Bitcoin Core v29.
// Standard P2A script (see github.com/bitcoin/bitcoin/pull/30352).
1500
+
witnessVersion ==1L&& program.contentEquals(byteArrayOf(0x4e, 0x73)) -> require(witness == witnessPay2anchor) { "P2A output must be spent with an empty witness" }
1492
1501
(scriptFlag andScriptFlags.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM) !=0->throwIllegalArgumentException("Witness version $witnessVersion reserved for soft-fork upgrades")
1493
-
else-> {
1494
-
// Higher version witness scripts return true for future softfork compatibility
1495
-
return
1496
-
}
1502
+
// Higher version witness scripts return true for future softfork compatibility
0 commit comments