2022-01-25 18:47:39 +00:00
|
|
|
package blockchain
|
|
|
|
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
|
|
|
|
var (
|
|
|
|
// errNilJustifiedInStore is returned when a nil justified checkpt is returned from store.
|
|
|
|
errNilJustifiedInStore = errors.New("nil justified checkpoint returned from store")
|
|
|
|
// errNilBestJustifiedInStore is returned when a nil justified checkpt is returned from store.
|
|
|
|
errNilBestJustifiedInStore = errors.New("nil best justified checkpoint returned from store")
|
|
|
|
// errNilFinalizedInStore is returned when a nil finalized checkpt is returned from store.
|
|
|
|
errNilFinalizedInStore = errors.New("nil finalized checkpoint returned from store")
|
2022-03-15 20:52:59 +00:00
|
|
|
// errInvalidNilSummary is returned when a nil summary is returned from the DB.
|
|
|
|
errInvalidNilSummary = errors.New("nil summary returned from the DB")
|
2022-03-30 17:45:24 +00:00
|
|
|
// errWrongBlockCount is returned when the wrong number of blocks or
|
2022-03-22 03:35:02 +00:00
|
|
|
// block roots is used
|
|
|
|
errWrongBlockCount = errors.New("wrong number of blocks or block roots")
|
2022-03-31 12:17:49 +00:00
|
|
|
// block is not a valid optimistic candidate block
|
|
|
|
errNotOptimisticCandidate = errors.New("block is not suitable for optimistic sync")
|
2022-01-25 18:47:39 +00:00
|
|
|
)
|