-
Notifications
You must be signed in to change notification settings - Fork 202
/
errors.go
34 lines (23 loc) · 1.69 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package headerCheck
import "errors"
// ErrNotEnoughSignatures signals that a block is not signed by at least the minimum number of validators from
// the consensus group
var ErrNotEnoughSignatures = errors.New("not enough signatures in block")
// ErrWrongSizeBitmap signals that the provided bitmap's length is bigger than the one that was required
var ErrWrongSizeBitmap = errors.New("wrong size bitmap has been provided")
// ErrInvalidReferenceChainID signals that the provided reference chain ID is not valid
var ErrInvalidReferenceChainID = errors.New("invalid reference Chain ID provided")
// ErrInvalidChainID signals that an invalid chain ID has been provided
var ErrInvalidChainID = errors.New("invalid chain ID")
// ErrInvalidSoftwareVersion signals that invalid software version was provided
var ErrInvalidSoftwareVersion = errors.New("invalid software version")
// ErrInvalidVersionOnEpochValues signals that the version element is not accepted because the epoch values are invalid
var ErrInvalidVersionOnEpochValues = errors.New("invalid version provided on epoch values")
// ErrEmptyVersionsByEpochsList signals that an empty versions by epochs list was provided
var ErrEmptyVersionsByEpochsList = errors.New("empty versions by epochs list")
// ErrInvalidVersionStringTooLong signals that the version element is not accepted because it contains too large strings
var ErrInvalidVersionStringTooLong = errors.New("invalid version provided: string too large")
// ErrSoftwareVersionMismatch signals that the software versions mismatch
var ErrSoftwareVersionMismatch = errors.New("software versions mismatch")
// ErrNilCacher signals that a nil cacher has been provided
var ErrNilCacher = errors.New("nil cacher")