From 1d71299212380fd4b4e58f60b5744fb675595708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Sat, 17 Feb 2024 01:13:18 +0100 Subject: [PATCH] lp: Allocate maddrs map --- cmd/lotus-provider/deps/deps.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/lotus-provider/deps/deps.go b/cmd/lotus-provider/deps/deps.go index 3a26c1468..c58c7ea7b 100644 --- a/cmd/lotus-provider/deps/deps.go +++ b/cmd/lotus-provider/deps/deps.go @@ -237,6 +237,9 @@ Get it with: jq .PrivateKey ~/.lotus-miner/keystore/MF2XI2BNNJ3XILLQOJUXMYLUMU`, // don't need (ehh.. maybe we do, the async callback system may actually work decently well with harmonytask) deps.LW = sealer.NewLocalWorker(sealer.WorkerConfig{}, deps.Stor, deps.LocalStore, deps.Si, nil, wstates) } + if deps.Maddrs == nil { + deps.Maddrs = map[dtypes.MinerAddress]bool{} + } if len(deps.Maddrs) == 0 { for _, s := range deps.Cfg.Addresses { for _, s := range s.MinerAddresses {