mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-01-16 12:54:25 +01:00
Initialize addressType to UnknownAddressType
This commit is contained in:
@@ -378,7 +378,7 @@ func (b *BtcWallet) ListUnspentWitness(minConfs, maxConfs int32) (
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var addressType lnwallet.AddressType
|
||||
addressType := lnwallet.UnknownAddressType
|
||||
if txscript.IsPayToWitnessPubKeyHash(pkScript) {
|
||||
addressType = lnwallet.WitnessPubKey
|
||||
} else if txscript.IsPayToScriptHash(pkScript) {
|
||||
|
||||
Reference in New Issue
Block a user