mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
save (#2913)
This commit is contained in:
parent
f1a493914f
commit
6639be6049
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user