From 631b2af81869858ecc6115613d2a93b96f069630 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 10 May 2022 18:03:29 +0200 Subject: [PATCH] btcwallet: support p2tr input info type detection --- lnwallet/btcwallet/signer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnwallet/btcwallet/signer.go b/lnwallet/btcwallet/signer.go index d1c88509c..6b571ea1c 100644 --- a/lnwallet/btcwallet/signer.go +++ b/lnwallet/btcwallet/signer.go @@ -41,6 +41,8 @@ func (b *BtcWallet) FetchInputInfo(prevOut *wire.OutPoint) (*lnwallet.Utxo, erro addressType = lnwallet.WitnessPubKey case txscript.IsPayToScriptHash(txOut.PkScript): addressType = lnwallet.NestedWitnessPubKey + case txscript.IsPayToTaproot(txOut.PkScript): + addressType = lnwallet.TaprootPubkey } return &lnwallet.Utxo{