mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
Merge pull request #3182 from yaslama/addressTypeInitialization
Initialize addressType to UnknownAddressType
This commit is contained in:
commit
f63c5d0170
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue