This commit is contained in:
Alex Sharov 2021-11-04 17:23:45 +07:00 committed by GitHub
parent f1a493914f
commit 6639be6049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,8 +39,13 @@ var storageMode = Migration{
if err != nil {
return err
}
if v == nil { // if no records in db - means Erigon just started first time and nothing to migrate. Noop.
if err := BeforeCommit(tx, nil, true); err != nil {
return err
}
return tx.Commit()
}
pm.History = castToPruneDistance(v)
}
{
v, err := tx.GetOne(kv.DatabaseInfo, StorageModeReceipts)