mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
btcwallet: support p2tr input info type detection
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user