diff --git a/cmd/lotus-shed/migrations.go b/cmd/lotus-shed/migrations.go index 7e3daf1f23e..2c75edd74cf 100644 --- a/cmd/lotus-shed/migrations.go +++ b/cmd/lotus-shed/migrations.go @@ -21,8 +21,8 @@ import ( ) var migrationsCmd = &cli.Command{ - Name: "migrate-nv15", - Description: "Run the specified migration", + Name: "migrate-nv16", + Description: "Run the nv16 migration", ArgsUsage: "[block to look back from]", Flags: []cli.Flag{ &cli.StringFlag{ @@ -92,14 +92,14 @@ var migrationsCmd = &cli.Command{ return err } - ts1, err := cs.GetTipsetByHeight(ctx, blk.Height-240, migrationTs, false) + ts1, err := cs.GetTipsetByHeight(ctx, blk.Height-180, migrationTs, false) if err != nil { return err } startTime := time.Now() - err = filcns.PreUpgradeActorsV7(ctx, sm, cache, ts1.ParentState(), ts1.Height()-1, ts1) + err = filcns.PreUpgradeActorsV8(ctx, sm, cache, ts1.ParentState(), ts1.Height()-1, ts1) if err != nil { return err } @@ -107,7 +107,7 @@ var migrationsCmd = &cli.Command{ fmt.Println("completed round 1, took ", time.Since(startTime)) startTime = time.Now() - newCid1, err := filcns.UpgradeActorsV7(ctx, sm, cache, nil, blk.ParentStateRoot, blk.Height-1, migrationTs) + newCid1, err := filcns.UpgradeActorsV8(ctx, sm, cache, nil, blk.ParentStateRoot, blk.Height-1, migrationTs) if err != nil { return err } @@ -115,7 +115,7 @@ var migrationsCmd = &cli.Command{ fmt.Println("new cid", newCid1) - newCid2, err := filcns.UpgradeActorsV7(ctx, sm, nv15.NewMemMigrationCache(), nil, blk.ParentStateRoot, blk.Height-1, migrationTs) + newCid2, err := filcns.UpgradeActorsV8(ctx, sm, nv15.NewMemMigrationCache(), nil, blk.ParentStateRoot, blk.Height-1, migrationTs) if err != nil { return err }