Merge pull request #5119 from filecoin-project/fix/ctl-address-lookup

miner: Fix control address lookup
This commit is contained in:
Łukasz Magiera 2020-12-07 12:59:32 +01:00 committed by GitHub
commit 3beebe5dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,8 @@ func pickAddress(ctx context.Context, a addrSelectApi, mi miner.MinerInfo, goodF
for _, addr := range addrs { for _, addr := range addrs {
if addr.Protocol() != address.ID { 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 { if err != nil {
log.Warnw("looking up control address", "address", addr, "error", err) log.Warnw("looking up control address", "address", addr, "error", err)
continue continue