mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
btcwallet: support p2tr input info type detection
This commit is contained in:
parent
8980471d57
commit
631b2af818
1 changed files with 2 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Reference in a new issue