@@ -17,9 +17,6 @@ import (
17
17
"golang.org/x/xerrors"
18
18
)
19
19
20
- // TODO: Make input to migration
21
- const UpgradeHeight = abi .ChainEpoch (3654004 )
22
-
23
20
// MigrateStateTree Migrates the filecoin state tree starting from the global state tree and upgrading all actor state.
24
21
// The store must support concurrent writes (even if the configured worker count is 1).
25
22
func MigrateStateTree (ctx context.Context , store cbor.IpldStore , newManifestCID cid.Cid , actorsRootIn cid.Cid , priorEpoch abi.ChainEpoch , cfg migration.Config , log migration.Logger , cache migration.MigrationCache ) (cid.Cid , error ) {
@@ -119,7 +116,7 @@ func MigrateStateTree(ctx context.Context, store cbor.IpldStore, newManifestCID
119
116
updatesToMinerToSectorToDeals : map [abi.ActorID ]map [abi.SectorNumber ][]abi.DealID {},
120
117
}
121
118
122
- minerMig , err := newMinerMigrator (ctx , store , miner13Cid , ps )
119
+ minerMig , err := newMinerMigrator (ctx , store , miner13Cid , ps , cfg . UpgradeEpoch )
123
120
if err != nil {
124
121
return cid .Undef , xerrors .Errorf ("failed to create miner migrator: %w" , err )
125
122
}
@@ -132,7 +129,7 @@ func MigrateStateTree(ctx context.Context, store cbor.IpldStore, newManifestCID
132
129
return cid .Undef , xerrors .Errorf ("code cid for market actor not found in new manifest" )
133
130
}
134
131
135
- marketMig , err := newMarketMigrator (ctx , store , market13Cid , ps )
132
+ marketMig , err := newMarketMigrator (ctx , store , market13Cid , ps , cfg . UpgradeEpoch )
136
133
if err != nil {
137
134
return cid .Undef , xerrors .Errorf ("failed to create market migrator: %w" , err )
138
135
}
0 commit comments