Documentation ¶
Index ¶
Constants ¶
View Source
const ( StorePrefixSnapshot byte = 1 StorePrefixBlocks byte = 2 StorePrefixBlockMetadata byte = 3 StorePrefixMilestoneIndexes byte = 4 StorePrefixMilestones byte = 5 StorePrefixChildren byte = 6 StorePrefixUnreferencedBlocks byte = 7 StorePrefixProtocol byte = 8 StorePrefixHealth byte = 255 )
Variables ¶
View Source
var ( // ErrCritical is returned when a critical error stops the execution of a task. ErrCritical = errors.New("critical error") // ErrOperationAborted is returned when the operation was aborted e.g. by a shutdown signal. ErrOperationAborted = errors.New("operation was aborted") // ErrBlockNotFound is returned when a block was not found. ErrBlockNotFound = errors.New("block not found") // ErrNodeNotSynced is returned when the node is not synchronized. ErrNodeNotSynced = errors.New("node is not synchronized") // ErrSnapshotInfoNotFound is returned when the snapshot info is not found in the database. ErrSnapshotInfoNotFound = errors.New("snapshot info not found") )
Functions ¶
func CriticalError ¶
CriticalError wraps the given error as a critical error.
func IsCriticalError ¶
IsCriticalError unwraps the inner error held by the critical error if the given error is a critical error. If the given error is not a critical error, nil is returned.
func IsSoftError ¶
IsSoftError unwraps the inner error held by the soft error if the given error is a soft error. If the given error is not a soft error, nil is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.