lnwallet: update CommitScriptAnchors to add taproot awareness

We also update some of the resolutions (even though they aren't hooked
up yet), as they need to be able to properly re-create the set of
scripts.
This commit is contained in:
Olaoluwa Osuntokun committed 2023-08-22 16:31:02 -07:00
1 parent cb0229d437
commit 5e511e35fd
3 files changed
+106 -27

No files matched your search

+1 -1
View File
@@ -834,7 +834,7 @@ func (c *chainWatcher) handlePossibleBreach(commitSpend *chainntnfs.SpendDetail,
// Create an AnchorResolution for the breached state.
anchorRes, err := lnwallet.NewAnchorResolution(
c.cfg.chanState, commitSpend.SpendingTx,
c.cfg.chanState, commitSpend.SpendingTx, nil,
)
if err != nil {
return false, fmt.Errorf("unable to create anchor "+