-
Notifications
You must be signed in to change notification settings - Fork 4
/
errors.go
17 lines (15 loc) · 894 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package chain
import "errors"
var (
ErrNoGenesis = errors.New("can't get genesis block")
ErrBlockNotExist = errors.New("block not exist in local")
ErrSaveBlock = errors.New("save block to db error")
ErrSaveAccount = errors.New("save account error")
ErrVerifyHeaderFailed = errors.New("verify block's header error")
ErrVerifyBlockFailed = errors.New("verify block error")
ErrInvalidConfirmInfo = errors.New("invalid confirm info")
ErrInvalidSignedConfirmInfo = errors.New("invalid signed data of confirm info")
ErrSetConfirmInfoToDB = errors.New("set confirm info to db error")
ErrSetStableBlockToDB = errors.New("set stable block to db error")
ErrStableHeightLargerThanCurrent = errors.New("stable block's height is larger than current block")
)