Check for manifest CID while loading bundle

This commit is contained in:
Geoff Stuart
2022-05-26 17:30:32 -04:00
parent c159290868
commit 30e7f89662
12 changed files with 102 additions and 113 deletions
+5
View File
@@ -48,6 +48,11 @@ func LoadBuiltinActors(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRe
if has {
// it's there, no need to reload the bundle to the blockstore; just add it to the manifest list.
if val, ok := build.ActorsCIDs[av]; ok {
if val != mfCid {
return result, xerrors.Errorf("actors V%d manifest CID %s did not match CID given in params file: %s", av, mfCid, val)
}
}
actors.AddManifest(av, mfCid)
continue
}