Documentation ¶
Index ¶
- Variables
- func IsInvalidExtensionError(err error) bool
- func IsNoChildBlockError(err error) bool
- func IsOutdatedExtensionError(err error) bool
- func IsUnknownBlockError(err error) bool
- func IsUnverifiableExtensionError(err error) bool
- func NewInvalidExtensionError(msg string) error
- func NewInvalidExtensionErrorf(msg string, args ...interface{}) error
- func NewNoChildBlockError(msg string) error
- func NewNoChildBlockErrorf(msg string, args ...interface{}) error
- func NewOutdatedExtensionError(msg string) error
- func NewOutdatedExtensionErrorf(msg string, args ...interface{}) error
- func NewUnknownBlockError(blockID flow.Identifier) error
- func NewUnverifiableExtensionError(msg string, args ...interface{}) error
- func WrapAsUnknownBlockError(blockID flow.Identifier, err error) error
- type InvalidExtensionError
- type NoChildBlockError
- type OutdatedExtensionError
- type UnknownBlockError
- type UnverifiableExtensionError
Constants ¶
This section is empty.
Variables ¶
var ( // ErrUnknownSnapshotReference indicates that the reference point for a queried // snapshot cannot be resolved. The reference point is either a height above the // finalized boundary, or a block ID that does not exist in the state. ErrUnknownSnapshotReference = errors.New("reference block of the snapshot is not resolvable") )
Functions ¶
func IsInvalidExtensionError ¶
IsInvalidExtensionError returns whether the given error is an InvalidExtensionError error
func IsNoChildBlockError ¶ added in v0.29.0
func IsUnknownBlockError ¶ added in v0.26.17
func IsUnverifiableExtensionError ¶ added in v0.29.0
func NewNoChildBlockError ¶ added in v0.29.0
func NewNoChildBlockErrorf ¶ added in v0.29.0
func NewUnknownBlockError ¶ added in v0.26.17
func NewUnknownBlockError(blockID flow.Identifier) error
func NewUnverifiableExtensionError ¶ added in v0.29.0
func WrapAsUnknownBlockError ¶ added in v0.26.17
func WrapAsUnknownBlockError(blockID flow.Identifier, err error) error
WrapAsUnknownBlockError wraps a given error as UnknownBlockError
Types ¶
type InvalidExtensionError ¶
type InvalidExtensionError struct {
// contains filtered or unexported fields
}
InvalidExtensionError is an error for invalid extension of the state. An invalid extension is distinct from outdated or unverifiable extensions, in that it indicates a malicious input.
func (InvalidExtensionError) Unwrap ¶ added in v0.14.0
func (e InvalidExtensionError) Unwrap() error
type NoChildBlockError ¶ added in v0.29.0
type NoChildBlockError struct {
// contains filtered or unexported fields
}
NoChildBlockError is returned where a certain block has no valid child. Since all blocks are validated before being inserted to the state, this is equivalent to have no stored child.
func (NoChildBlockError) Unwrap ¶ added in v0.29.0
func (e NoChildBlockError) Unwrap() error
type OutdatedExtensionError ¶
type OutdatedExtensionError struct {
// contains filtered or unexported fields
}
OutdatedExtensionError is an error for the extension of the state being outdated. Being outdated doesn't mean it's invalid or not. Knowing whether an outdated extension is an invalid extension or not would take more state queries.
func (OutdatedExtensionError) Unwrap ¶ added in v0.14.0
func (e OutdatedExtensionError) Unwrap() error
type UnknownBlockError ¶ added in v0.26.17
type UnknownBlockError struct {
// contains filtered or unexported fields
}
UnknownBlockError is a sentinel error indicating that a certain block has not been ingested yet.
func (UnknownBlockError) Unwrap ¶ added in v0.26.17
func (e UnknownBlockError) Unwrap() error
type UnverifiableExtensionError ¶ added in v0.29.0
type UnverifiableExtensionError struct {
// contains filtered or unexported fields
}
UnverifiableExtensionError represents a state extension (block) which cannot be verified at the moment. For example, it does not connect to the finalized state, or an entity referenced within the payload is unknown. Unlike InvalidExtensionError, this error is only used when the failure CANNOT be attributed to a malicious input, therefore this error can be treated as a benign failure.
func (UnverifiableExtensionError) Unwrap ¶ added in v0.29.0
func (e UnverifiableExtensionError) Unwrap() error