From 156650fe48250023f7b8de8c8f0904c5f69a4825 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Sun, 14 Mar 2021 12:12:01 +0100 Subject: [PATCH] lnd: add more context to address decode error --- lnd/hdkeychain.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnd/hdkeychain.go b/lnd/hdkeychain.go index 0649475..c946a03 100644 --- a/lnd/hdkeychain.go +++ b/lnd/hdkeychain.go @@ -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