mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-02 07:50:17 +02:00
btcwallet: support p2tr input info type detection
This commit is contained in:
parent
8980471d57
commit
631b2af818
@ -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…
x
Reference in New Issue
Block a user