/
errors.go
70 lines (67 loc) · 3.78 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package types
import "errors"
var (
// ErrInvalidTitle invalid commit msg title
ErrInvalidTitle = errors.New("ErrInvalidTitle")
// ErrTitleNotExist commit msg title not exist
ErrTitleNotExist = errors.New("ErrTitleNotExist")
// ErrNodeNotForTheTitle the node not match with title
ErrNodeNotForTheTitle = errors.New("ErrNodeNotForTheTitle")
// ErrParaBlockHashNoMatch block hash not match with before
ErrParaBlockHashNoMatch = errors.New("ErrParaBlockHashNoMatch")
// ErrParaMinerBaseIndex miner base index not 0
ErrParaMinerBaseIndex = errors.New("ErrParaMinerBaseIndex")
// ErrParaMinerTxType the 0 tx is not miner tx
ErrParaMinerTxType = errors.New("ErrParaMinerTxType")
// ErrParaEmptyMinerTx block no miner tx
ErrParaEmptyMinerTx = errors.New("ErrParaEmptyMinerTx")
// ErrParaMinerExecErr miner tx exec error
ErrParaMinerExecErr = errors.New("ErrParaMinerExecErr")
// ErrParaWaitingNewSeq para waiting main node new seq coming
ErrParaWaitingNewSeq = errors.New("ErrParaWaitingNewSeq")
// ErrParaCurHashNotMatch para curr main hash not match with pre, main node may switched
ErrParaCurHashNotMatch = errors.New("ErrParaCurHashNotMatch")
// ErrParaUnSupportNodeOper unsupport node operation
ErrParaUnSupportNodeOper = errors.New("ErrParaUnSupportNodeOper")
//ErrParaNodeAddrExisted node addr exist in group
ErrParaNodeAddrExisted = errors.New("ErrParaNodeAddrExisted")
//ErrParaNodeAddrNotExisted node addr not exist in group
ErrParaNodeAddrNotExisted = errors.New("ErrParaNodeAddrNotExisted")
//ErrParaManageNodesNotSet config manage node not set
ErrParaManageNodesNotSet = errors.New("ErrParaManageNodesNotSet")
//ErrParaNodeGroupNotSet para config node group not set by take over
ErrParaNodeGroupNotSet = errors.New("ErrParaManageNodesNotSet")
//ErrParaNodeGroupExisted para config group taked over alreay
ErrParaNodeGroupExisted = errors.New("ErrParaNodesExisted")
//ErrParaNodeGroupLastAddr last super node not be allow to quite
ErrParaNodeGroupLastAddr = errors.New("ErrParaNodeGroupLastAddr")
//ErrParaNodeVoteSelf vote self not allow
ErrParaNodeVoteSelf = errors.New("ErrParaNodeVoteSelf")
//ErrParaNodeGroupFrozenCoinsNotEnough node group coins in tx less than conf's minimum coins
ErrParaNodeGroupFrozenCoinsNotEnough = errors.New("ErrParaNodeGroupFrozenCoinsNotEnough")
//ErrParaNodeOpStatusWrong node process wrong status
ErrParaNodeOpStatusWrong = errors.New("ErrParaNodeOpStatusWrong")
//ErrParaConsensStopBlocksNotReach consensus stop blocks not reach
ErrParaConsensStopBlocksNotReach = errors.New("ErrParaConsensStopBlocksNotReach")
//ErrForkHeightNotReach fork height not reach
ErrForkHeightNotReach = errors.New("ErrForkHeightNotReach")
//ErrHeightHasPast height has past
ErrHeightHasPast = errors.New("ErrHeightHasPast")
// ErrKeyNotExist config key not exist
ErrKeyNotExist = errors.New("ErrKeyNotExist")
// ErrConsensClosed consensus closed
ErrConsensClosed = errors.New("ErrConsensClosed")
//ErrBlsSignVerify bls12-381 aggregate sign verify
ErrBlsSignVerify = errors.New("ErrBlsSignVerify")
//ErrParaSupervisionNodeAddrExisted node addr exist in group
ErrParaSupervisionNodeAddrExisted = errors.New("ErrParaSupervisionNodeAddrExisted")
//ErrParaSupervisionNodeGroupNotSet para config node group not set by take over
ErrParaSupervisionNodeGroupNotSet = errors.New("ErrParaSupervisionNodeGroupNotSet")
//ErrParaSupervisionNodeGroupExisted para config group taked over alreay
ErrParaSupervisionNodeGroupExisted = errors.New("ErrParaSupervisionNodesExisted")
//ErrParaSupervisionNodeAddrNotExisted node addr not exist in supervision group
ErrParaSupervisionNodeAddrNotExisted = errors.New("ErrParaSupervisionNodeAddrNotExisted")
)