lnd: add more context to address decode error

pull/17/head
Oliver Gugger 3 years ago
parent f42a65120b
commit 156650fe48
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -173,7 +173,8 @@ func DecodeAddressHash(addr string, chainParams *chaincfg.Params) ([]byte, bool,
// First parse address to get targetHash from it later.
targetAddr, err := btcutil.DecodeAddress(addr, chainParams)
if err != nil {
return nil, false, err
return nil, false, fmt.Errorf("unable to decode address %s: %v",
addr, err)
}
// Make the check on the decoded address according to the active

Loading…
Cancel
Save