lnwallet: update NewAnchorResolution to support taproot anchors

This commit is contained in:
Olaoluwa Osuntokun
2023-03-01 21:40:44 -08:00
parent a128b74dc1
commit ee59e3f181
2 changed files with 70 additions and 16 deletions

View File

@@ -885,7 +885,7 @@ 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,
c.cfg.chanState, commitSpend.SpendingTx, nil, false,
)
if err != nil {
return false, fmt.Errorf("unable to create anchor "+