Fixup after merge (#1432)

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
ledgerwatch 2021-01-02 20:22:35 +00:00 committed by GitHub
parent 8db5790838
commit baafc90bc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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
}