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-15 19:12:52 +00:00
|
|
|
// errNilParentInDB is returned when a nil parent block is returned from the DB.
|
|
|
|
errNilParentInDB = errors.New("nil parent block in DB")
|
2022-01-25 18:47:39 +00:00
|
|
|
)
|