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
2023-01-19 17:06:38 -08:00
parent cb0229d437
commit 5e511e35fd
3 changed files with 106 additions and 27 deletions

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 "+