Merge pull request #5119 from filecoin-project/fix/ctl-address-lookup
miner: Fix control address lookup
This commit is contained in:
commit
3beebe5dc8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user