From a5a72a41eb8bd048cfda2b374f0695c034f9d41f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 4 Dec 2020 17:02:23 +0100 Subject: [PATCH] miner: Fix control address lookup --- storage/addresses.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/addresses.go b/storage/addresses.go index 1abc8a839..5da8643cd 100644 --- a/storage/addresses.go +++ b/storage/addresses.go @@ -71,7 +71,8 @@ func pickAddress(ctx context.Context, a addrSelectApi, mi miner.MinerInfo, goodF for _, addr := range addrs { if addr.Protocol() != address.ID { - addr, err := a.StateLookupID(ctx, addr, types.EmptyTSK) + var err error + addr, err = a.StateLookupID(ctx, addr, types.EmptyTSK) if err != nil { log.Warnw("looking up control address", "address", addr, "error", err) continue