mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
86f6a44da6
* Docs * Interface definitions * Fmt and gazelle * Rename interface to interfaces * Define all the type for protoarray * Gaz * Add error types * Add compute delta helper * Compute delta tests * Gaz * Add checking if nodes viable * Test for viable head * Test for non leaf node can lead to viable head * Conflict * Extra space * Remove fmt print * Add updateBestChildAndDescendant * Tests * Merge branch 'master' into proto-array-forkchoice-6 * Conflict * Merge branch 'proto-array-forkchoice-6' of git+ssh://github.com/prysmaticlabs/prysm into proto-array-forkchoice-6 * Add applyScoreChanges * More test * Rename score to weight * Conflict * Add insert function * Test * Merge refs/heads/master into proto-array-forkchoice-8 * Merge refs/heads/master into proto-array-forkchoice-8 * Merge branch 'master' of git+ssh://github.com/prysmaticlabs/prysm into proto-array-forkchoice-8 * Merge branch 'proto-array-forkchoice-8' of git+ssh://github.com/prysmaticlabs/prysm into proto-array-forkchoice-8 * Add prune method * Tests * Fixed long line
14 lines
655 B
Go
14 lines
655 B
Go
package protoarray
|
|
|
|
import "errors"
|
|
|
|
var errUnknownFinalizedRoot = errors.New("unknown finalized root")
|
|
var errUnknownJustifiedRoot = errors.New("unknown justified root")
|
|
var errInvalidNodeIndex = errors.New("node index is invalid")
|
|
var errInvalidJustifiedIndex = errors.New("justified index is invalid")
|
|
var errInvalidBestChildIndex = errors.New("best child index is invalid")
|
|
var errInvalidBestDescendantIndex = errors.New("best descendant index is invalid")
|
|
var errInvalidParentDelta = errors.New("parent delta is invalid")
|
|
var errInvalidNodeDelta = errors.New("node delta is invalid")
|
|
var errInvalidDeltaLength = errors.New("delta length is invalid")
|