File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ RestrictTxPlanSize = 36
1
2
ERROR_INFO = {
2
3
# successful error code
3
4
0 : 'sendRawTransaction successful' ,
5
+ # System error
6
+ 1 : 'System error' ,
7
+ # Object not found
8
+ 2 : 'Object not found' ,
9
+ # Invalid parameter
10
+ 3 : 'Invalid parameter' ,
4
11
# staking error code
5
12
301000 : 'Invalid BLS public key length' ,
6
13
301001 : 'The BLS proof is incorrect' ,
88
95
303010 : "Can't report yourself" ,
89
96
# restricting error code
90
97
304001 : 'The initial epoch for staking cannot be zero' ,
98
+ 304002 : 'The number of the restricting plan cannot be (0, {}]' .format (RestrictTxPlanSize ),
91
99
304003 : 'Total staking amount shall be more than 1 LAT' ,
92
100
304004 : 'Create plan,the sender balance is not enough in restrict' ,
93
101
304005 : 'Account is not found on restricting contract' ,
You can’t perform that action at this time.
0 commit comments