mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 12:10:05 +00:00
649dee532f
* insert block to forkchoice after notifyNewPayload * Add optimistic candidate check * Terence's review * Apply suggestions from code review Co-authored-by: terence tsao <terence@prysmaticlabs.com>
22 lines
1.2 KiB
Go
22 lines
1.2 KiB
Go
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")
|
|
// errInvalidNilSummary is returned when a nil summary is returned from the DB.
|
|
errInvalidNilSummary = errors.New("nil summary returned from the DB")
|
|
// errNilParentInDB is returned when a nil parent block is returned from the DB.
|
|
errNilParentInDB = errors.New("nil parent block in DB")
|
|
// errWrongBlockCount is returned when the wrong number of blocks or
|
|
// block roots is used
|
|
errWrongBlockCount = errors.New("wrong number of blocks or block roots")
|
|
// block is not a valid optimistic candidate block
|
|
errNotOptimisticCandidate = errors.New("block is not suitable for optimistic sync")
|
|
)
|