actually use the temp cache for pre-migrations
This commit is contained in:
parent
32059d0cbf
commit
05026a23b9
@ -292,7 +292,7 @@ func (sm *StateManager) preMigrationWorker(ctx context.Context) {
|
|||||||
// migration to use the cache may assume that
|
// migration to use the cache may assume that
|
||||||
// certain blocks exist, even if they don't.
|
// certain blocks exist, even if they don't.
|
||||||
tmpCache := cache.Clone()
|
tmpCache := cache.Clone()
|
||||||
err := migrationFunc(preCtx, sm, cache, ts.ParentState(), ts.Height(), ts)
|
err := migrationFunc(preCtx, sm, tmpCache, ts.ParentState(), ts.Height(), ts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorw("failed to run pre-migration",
|
log.Errorw("failed to run pre-migration",
|
||||||
"error", err)
|
"error", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user