From a694bb898dc954e4f7a42d07314cf6cbea0b72ac Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 18 May 2022 20:14:42 +0300 Subject: [PATCH] remove stale TODO comment --- chain/actors/manifest.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/chain/actors/manifest.go b/chain/actors/manifest.go index bfc06e9e5..2276ee3e4 100644 --- a/chain/actors/manifest.go +++ b/chain/actors/manifest.go @@ -18,10 +18,7 @@ import ( "github.com/filecoin-project/lotus/chain/actors/adt" ) -var manifestCids map[Version]cid.Cid = map[Version]cid.Cid{ - // TODO fill in manifest CIDs for v8 and upwards once these are fixed -} - +var manifestCids map[Version]cid.Cid var manifests map[Version]*manifest.Manifest var actorMeta map[cid.Cid]actorEntry @@ -52,6 +49,10 @@ func AddManifest(av Version, manifestCid cid.Cid) { manifestMx.Lock() defer manifestMx.Unlock() + if manifestCids == nil { + manifestCids = make(map[Version]cid.Cid) + } + manifestCids[av] = manifestCid }