contractcourt: update the anchor resolver for taproot chans

This commit is contained in:
Olaoluwa Osuntokun
2023-03-01 22:14:12 -08:00
parent 47d4eb341d
commit 2010239b63
3 changed files with 37 additions and 9 deletions

View File

@@ -885,7 +885,8 @@ func (c *chainWatcher) handlePossibleBreach(commitSpend *chainntnfs.SpendDetail,
// TODO(roasbeef): make keyring for taproot chans to pass in instead of
// nil
anchorRes, err := lnwallet.NewAnchorResolution(
c.cfg.chanState, commitSpend.SpendingTx, nil, false,
c.cfg.chanState, commitSpend.SpendingTx, retribution.KeyRing,
false,
)
if err != nil {
return false, fmt.Errorf("unable to create anchor "+