mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-29 18:03:08 +02:00
input: update all taproot script spends to optionally make the ctrl block
In this commit, we update all the taproot scripts spends to optionally make the control block. This is useful in cases where we've already created the control block, or may not have the items needed to construct it in the first place. We also add the control block to the sign descriptor itself.
This commit is contained in:
@@ -998,7 +998,7 @@ var witnessSizeTests = []witnessSizeTest{
|
||||
}
|
||||
|
||||
witness, err := input.TaprootHtlcSpendSuccess(
|
||||
signer, signDesc, revokeKey.PubKey(), testTx,
|
||||
signer, signDesc, testTx, revokeKey.PubKey(),
|
||||
scriptTree,
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
Reference in New Issue
Block a user