Initialize addressType to UnknownAddressType

This commit is contained in:
Yaacov Akiba Slama 2019-06-10 15:22:17 +03:00
parent e45d4d703a
commit bbaf37b7d2

@ -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) {