Initialize addressType to UnknownAddressType
This commit is contained in:
1 parent
e45d4d703a
commit
bbaf37b7d2
1 file changed
+1
-1
@@ -378,7 +378,7 @@ func (b *BtcWallet) ListUnspentWitness(minConfs, maxConfs int32) (
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var addressType lnwallet.AddressType
|
addressType := lnwallet.UnknownAddressType
|
||||||
if txscript.IsPayToWitnessPubKeyHash(pkScript) {
|
if txscript.IsPayToWitnessPubKeyHash(pkScript) {
|
||||||
addressType = lnwallet.WitnessPubKey
|
addressType = lnwallet.WitnessPubKey
|
||||||
} else if txscript.IsPayToScriptHash(pkScript) {
|
} else if txscript.IsPayToScriptHash(pkScript) {
|
||||||
|
|||||||
Reference in new issue
Block a user