From 98aabb89b33f163b650685ca3f62b823eb32ac32 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 9 Aug 2021 12:17:43 +0200 Subject: [PATCH] rescueclosed: fix crash for nil commit point --- cmd/chantools/rescueclosed.go | 2 ++ cmd/chantools/root.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/chantools/rescueclosed.go b/cmd/chantools/rescueclosed.go index 1a1766f..6cf058a 100644 --- a/cmd/chantools/rescueclosed.go +++ b/cmd/chantools/rescueclosed.go @@ -403,6 +403,8 @@ func addrInCache(addr string, perCommitPoint *btcec.PublicKey) (string, error) { return wif.String(), nil } } + + return "", errAddrNotFound } // Loop through all cached payment base point keys, tweak each of it diff --git a/cmd/chantools/root.go b/cmd/chantools/root.go index 05668b9..bb195af 100644 --- a/cmd/chantools/root.go +++ b/cmd/chantools/root.go @@ -26,7 +26,7 @@ import ( const ( defaultAPIURL = "https://blockstream.info/api" - version = "0.9.0" + version = "0.9.1" na = "n/a" Commit = ""