mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
958dd9d783
* transition proto * gen pb * builds * impl transition config * begin tests * transition config messed up * amend proto * use str * passing * gaz * config * client test * pb * set to 0 * rem log * gaz * check transition config * check config differences * check transition config in background * gaz * pass * redundant * fix up error handling and healthz * simplify status * gazelle * build * err config check * test * gaz * Fix run time Co-authored-by: terence tsao <terence@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
40 lines
2.2 KiB
Go
40 lines
2.2 KiB
Go
package v1
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
var (
|
|
// ErrParse corresponds to JSON-RPC code -32700.
|
|
ErrParse = errors.New("invalid JSON was received by the server")
|
|
// ErrInvalidRequest corresponds to JSON-RPC code -32600.
|
|
ErrInvalidRequest = errors.New("JSON sent is not valid request object")
|
|
// ErrMethodNotFound corresponds to JSON-RPC code -32601.
|
|
ErrMethodNotFound = errors.New("method not found")
|
|
// ErrInvalidParams corresponds to JSON-RPC code -32602.
|
|
ErrInvalidParams = errors.New("invalid method parameter(s)")
|
|
// ErrInternal corresponds to JSON-RPC code -32603.
|
|
ErrInternal = errors.New("internal JSON-RPC error")
|
|
// ErrServer corresponds to JSON-RPC code -32000.
|
|
ErrServer = errors.New("client error while processing request")
|
|
// ErrUnknownPayload corresponds to JSON-RPC code -32001.
|
|
ErrUnknownPayload = errors.New("payload does not exist or is not available")
|
|
// ErrUnknownPayloadStatus when the payload status is unknown.
|
|
ErrUnknownPayloadStatus = errors.New("unknown payload status")
|
|
// ErrUnsupportedScheme for unsupported URL schemes.
|
|
ErrUnsupportedScheme = errors.New("unsupported url scheme, only http(s) and ipc are supported")
|
|
// ErrConfigMismatch when the execution node's terminal total difficulty or
|
|
// terminal block hash received via the API mismatches Prysm's configuration value.
|
|
ErrConfigMismatch = errors.New("execution client configuration mismatch")
|
|
// ErrMismatchTerminalBlockHash when the terminal block hash value received via
|
|
// the API mismatches Prysm's configuration value.
|
|
ErrMismatchTerminalBlockHash = errors.New("terminal block hash mismatch")
|
|
// ErrMismatchTerminalTotalDiff when the terminal total difficulty value received via
|
|
// the API mismatches Prysm's configuration value.
|
|
ErrMismatchTerminalTotalDiff = errors.New("terminal total difficulty mismatch")
|
|
// ErrAcceptedSyncingPayloadStatus when the status of the payload is syncing or accepted.
|
|
ErrAcceptedSyncingPayloadStatus = errors.New("payload status is SYNCING or ACCEPTED")
|
|
// ErrInvalidPayloadStatus when the status of the payload is invalid.
|
|
ErrInvalidPayloadStatus = errors.New("payload status is INVALID")
|
|
// ErrNilResponse when the response is nil.
|
|
ErrNilResponse = errors.New("nil response")
|
|
)
|