diff --git a/chain/consensus/filcns/upgrades.go b/chain/consensus/filcns/upgrades.go index ef401b933..2f8438b10 100644 --- a/chain/consensus/filcns/upgrades.go +++ b/chain/consensus/filcns/upgrades.go @@ -208,6 +208,7 @@ func DefaultUpgradeSchedule() stmgr.UpgradeSchedule { }}, Expensive: true, }, + // TODO v10 upgrade } for _, u := range updates { @@ -1552,6 +1553,15 @@ func upgradeActorsV9Common( return newRoot, nil } +func UpgradeActorsV10(ctx context.Context, sm *stmgr.StateManager, cache stmgr.MigrationCache, cb stmgr.ExecMonitor, + root cid.Cid, epoch abi.ChainEpoch, ts *types.TipSet) (cid.Cid, error) { + + // TODO migration + // - the init actor state to include the (empty) installed actors field + // - state tree migration to v5 + return cid.Undef, fmt.Errorf("IMPLEMENTME: v10 migration") +} + // Example upgrade function if upgrade requires only code changes //func UpgradeActorsV9(ctx context.Context, sm *stmgr.StateManager, _ stmgr.MigrationCache, _ stmgr.ExecMonitor, root cid.Cid, _ abi.ChainEpoch, _ *types.TipSet) (cid.Cid, error) { // buf := blockstore.NewTieredBstore(sm.ChainStore().StateBlockstore(), blockstore.NewMemorySync())