Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add simple nv23 migration #258

Merged
merged 2 commits into from
May 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update builtin/v14/migration/top.go
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
  • Loading branch information
rjan90 and arajasek authored May 2, 2024
commit 538db918bcf8c914b9117f2c89f8e52c1a5cd744
2 changes: 1 addition & 1 deletion builtin/v14/migration/top.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func MigrateStateTree(ctx context.Context, store cbor.IpldStore, newManifestCID
migrations[systemActor.Code] = systemActorMigrator{OutCodeCID: newSystemCodeCID, ManifestData: newManifest.Data}

if len(migrations)+len(deferredCodeIDs) != len(oldManifestData.Entries) {
return cid.Undef, xerrors.Errorf("incomplete migration specification with %d code CIDs, need %d", len(migrations), len(oldManifestData.Entries))
return cid.Undef, xerrors.Errorf("incomplete migration specification with %d code CIDs, need %d", len(migrations)+len(deferredCodeIDs), len(oldManifestData.Entries))
}

actorsOut, err := migration.RunMigration(ctx, cfg, cache, store, log, actorsIn, migrations)
Expand Down