Skip to content

Commit

Permalink
define filcns.UpgradeActorsV10
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Nov 8, 2022
1 parent 4241aea commit 4c6af07
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chain/consensus/filcns/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func DefaultUpgradeSchedule() stmgr.UpgradeSchedule {
}},
Expensive: true,
},
// TODO v10 upgrade
}

for _, u := range updates {
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 4c6af07

Please sign in to comment.