arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/common/errors.go
common/errors.goRaw
 1package common
 2
 3import "errors"
 4
 5// ErrNotInFF is used when the *big.Int does not fit inside the Finite Field
 6var ErrNotInFF = errors.New("BigInt not inside the Finite Field")
 7
 8// ErrNumOverflow is used when a given value overflows the maximum capacity of the parameter
 9var ErrNumOverflow = errors.New("Value overflows the type")
10
11// ErrNonceOverflow is used when a given nonce overflows the maximum capacity of the Nonce (2**40-1)
12var ErrNonceOverflow = errors.New("Nonce overflow, max value: 2**40 -1")
13
14// ErrBatchQueueEmpty is used when the coordinator.BatchQueue.Pop() is called and has no elements
15var ErrBatchQueueEmpty = errors.New("BatchQueue empty")