Skip to content

Commit

Permalink
add migration TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Nov 8, 2022
1 parent 72a24cd commit f77b321
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chain/consensus/filcns/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,9 @@ func UpgradeActorsV10(ctx context.Context, sm *stmgr.StateManager, cache stmgr.M
return cid.Undef, xerrors.Errorf("no manifest CID for v10 upgrade")
}

// TODO this is fine for now, but we need to also migrate the init actor state to include
// the (empty) installed actors field if it is staying; note that currently fvm3 expects
// it to be there.
bstore := sm.ChainStore().StateBlockstore()
return LiteMigration(ctx, bstore, newActorsManifestCid, root, oldv, newv, types.StateTreeVersion4, newStateTreeVersion)
}
Expand Down

0 comments on commit f77b321

Please sign in to comment.