mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
parent
c2c63a3715
commit
ccc028daf6
@ -20,6 +20,7 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
@ -121,9 +122,9 @@ func lastSnapshot(db ethdb.RwKV) (uint64, error) {
|
||||
|
||||
lastEnc, err := tx.GetOne(dbutils.CliqueLastSnapshotBucket, LastSnapshotKey())
|
||||
if err != nil {
|
||||
if !errors.Is(err, ethdb.ErrKeyNotFound) {
|
||||
log.Error("can't check last snapshot", "err", err)
|
||||
}
|
||||
return 0, fmt.Errorf("failed check last clique snapshot: %d", err)
|
||||
}
|
||||
if len(lastEnc) == 0 {
|
||||
return 0, ErrNotFound
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user