mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 03:31:20 +00:00
17a43c1158
* new stategen.StateReplayer/ReplayerBuilder to give more fine-grained control of replaying state+block history * all rpc/api methods updated to use the new interface, return post-state Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: terence tsao <terence@prysmaticlabs.com>
16 lines
795 B
Go
16 lines
795 B
Go
package db
|
|
|
|
import "github.com/prysmaticlabs/prysm/beacon-chain/db/kv"
|
|
|
|
// ErrNotFound can be used to determine if an error from a method in the database package
|
|
// represents a "not found" error. These often require different handling than a low-level
|
|
// i/o error. This variable copies the value in the kv package to the same scope as the Database interfaces,
|
|
// so that it is available to code paths that do not interact directly with the kv package.
|
|
var ErrNotFound = kv.ErrNotFound
|
|
|
|
// ErrNotFoundState wraps ErrNotFound for an error specific to a state not being found in the database.
|
|
var ErrNotFoundState = kv.ErrNotFoundState
|
|
|
|
// ErrNotFoundOriginBlockRoot wraps ErrNotFound for an error specific to the origin block root.
|
|
var ErrNotFoundOriginBlockRoot = kv.ErrNotFoundOriginBlockRoot
|