Skip to content

Commit 98aabb8

Browse files
committed
rescueclosed: fix crash for nil commit point
1 parent 328f48d commit 98aabb8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmd/chantools/rescueclosed.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ func addrInCache(addr string, perCommitPoint *btcec.PublicKey) (string, error) {
403403
return wif.String(), nil
404404
}
405405
}
406+
407+
return "", errAddrNotFound
406408
}
407409

408410
// Loop through all cached payment base point keys, tweak each of it

cmd/chantools/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
const (
2828
defaultAPIURL = "https://blockstream.info/api"
29-
version = "0.9.0"
29+
version = "0.9.1"
3030
na = "n/a"
3131

3232
Commit = ""

0 commit comments

Comments
 (0)