Skip to content

Commit

Permalink
add INCONSISTENT_VOTER_SET for KIP-595
Browse files Browse the repository at this point in the history
  • Loading branch information
twmb committed Sep 24, 2020
1 parent baa3fab commit 78faa03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/kerr/kerr.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ var (
ResourceNotFound = &Error{"RESOURCE_NOT_FOUND", 91, false, "A request illegally referred to a resource that does not exist."}
DuplicateResource = &Error{"DUPLICATE_RESOURCE", 92, false, "A request illegally referred to the same resource twice."}
UnacceptableCredential = &Error{"UNACCEPTABLE_CREDENTIAL", 93, false, "Requested credential would not meet criteria for acceptability."}
InconsistentVoterSet = &Error{"INCONSISTENT_VOTER_SET", 94, false, "Indicates that either the sender or recipient of a voter-only request is not one of the expected voters."}
)

var code2err = map[int16]error{
Expand Down Expand Up @@ -235,4 +236,5 @@ var code2err = map[int16]error{
91: ResourceNotFound,
92: DuplicateResource,
93: UnacceptableCredential,
94: InconsistentVoterSet,
}

0 comments on commit 78faa03

Please sign in to comment.