btcwallet: support p2tr input info type detection
This commit is contained in:
1 file changed
+2
@@ -41,6 +41,8 @@ func (b *BtcWallet) FetchInputInfo(prevOut *wire.OutPoint) (*lnwallet.Utxo, erro
|
|||||||
addressType = lnwallet.WitnessPubKey
|
addressType = lnwallet.WitnessPubKey
|
||||||
case txscript.IsPayToScriptHash(txOut.PkScript):
|
case txscript.IsPayToScriptHash(txOut.PkScript):
|
||||||
addressType = lnwallet.NestedWitnessPubKey
|
addressType = lnwallet.NestedWitnessPubKey
|
||||||
|
case txscript.IsPayToTaproot(txOut.PkScript):
|
||||||
|
addressType = lnwallet.TaprootPubkey
|
||||||
}
|
}
|
||||||
|
|
||||||
return &lnwallet.Utxo{
|
return &lnwallet.Utxo{
|
||||||
|
|||||||
Reference in new issue
Block a user