11 case E::INVALID_SIGNATURE:
12 return "Invalid signature";
13 case E::REDUNDANT_EQUIVOCATION:
14 return "Redundant equivocation";
15 case E::NOT_ENOUGH_WEIGHT:
16 return "Non enough weigh of votes";
17 case E::JUSTIFICATION_FOR_ROUND_IN_PAST:
18 return "Justification for passed round";
19 case E::JUSTIFICATION_FOR_BLOCK_IN_PAST:
20 return "Justification for early finalized block";
21 case E::JUSTIFICATION_FOR_AUTHORITY_SET_IN_PAST:
22 return "Justification for an obsolete authority set";
23 case E::LAST_ESTIMATE_BETTER_THAN_PREVOTE:
24 return "Current state does not contain prevote which is equal to the " 25 "last round estimate or is descendant of it";
26 case E::JUSTIFIED_BLOCK_IS_GREATER_THAN_ACTUALLY_FINALIZED:
27 return "Justified block is greater than actually finalized";
28 case E::NO_KNOWN_AUTHORITIES_FOR_BLOCK:
29 return "Can't retrieve authorities for the given block. Likely indicates " 30 "the block is invalid.";
31 case E::WRONG_ORDER_OF_VOTER_SET_ID:
32 return "New round has an abnormal voter set id, expected " 33 "equal or greater by one than the previous voter set id";
35 return "Provided vote's voter is unknown";
36 case E::ZERO_WEIGHT_VOTER:
37 return "Provided vote of disabled (zero weight) voter";
38 case E::DUPLICATED_VOTE:
39 return "Provided vote duplicates the existing one";
40 case E::EQUIVOCATED_VOTE:
41 return "Provided vote equivocated the existing one";
42 case E::VOTE_OF_KNOWN_EQUIVOCATOR:
43 return "Provided vote is vote of known equivocator";
44 case E::NO_PREVOTE_CANDIDATE:
45 return "Can't get best prevote candidate";
46 case E::ROUND_IS_NOT_FINALIZABLE:
47 return "Round is not finalizable";
49 return "Unknown error (invalid VotingRoundError)";
const ReputationChange UNKNOWN_VOTER
OUTCOME_CPP_DEFINE_CATEGORY(kagome::consensus::grandpa, VotingRoundError, e)