mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 04:57:17 +00:00
Fixup after merge (#1432)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
parent
8db5790838
commit
baafc90bc6
@ -106,7 +106,7 @@ var cmdSnapshotCheck = &cobra.Command{
|
||||
|
||||
func snapshotCheck(ctx context.Context, db ethdb.Database, isNew bool, tmpDir string) (err error) {
|
||||
var snapshotBlock uint64 = 11_000_000
|
||||
blockNum, _, err := stages.GetStageProgress(db, stages.Execution)
|
||||
blockNum, err := stages.GetStageProgress(db, stages.Execution)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ func PostProcessBodies(db ethdb.Database) error {
|
||||
}
|
||||
|
||||
func PostProcessState(db ethdb.GetterPutter, info *SnapshotsInfo) error {
|
||||
v, _, err := stages.GetStageProgress(db, stages.Execution)
|
||||
v, err := stages.GetStageProgress(db, stages.Execution)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -85,7 +85,7 @@ func PostProcessState(db ethdb.GetterPutter, info *SnapshotsInfo) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
err = stages.SaveStageProgress(db, stages.Execution, info.SnapshotBlock, nil)
|
||||
err = stages.SaveStageProgress(db, stages.Execution, info.SnapshotBlock)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user