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"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -121,9 +122,9 @@ func lastSnapshot(db ethdb.RwKV) (uint64, error) {
|
|||||||
|
|
||||||
lastEnc, err := tx.GetOne(dbutils.CliqueLastSnapshotBucket, LastSnapshotKey())
|
lastEnc, err := tx.GetOne(dbutils.CliqueLastSnapshotBucket, LastSnapshotKey())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if !errors.Is(err, ethdb.ErrKeyNotFound) {
|
return 0, fmt.Errorf("failed check last clique snapshot: %d", err)
|
||||||
log.Error("can't check last snapshot", "err", err)
|
}
|
||||||
}
|
if len(lastEnc) == 0 {
|
||||||
return 0, ErrNotFound
|
return 0, ErrNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user