spec: explicit CandidateStatus enum

This commit is contained in:
Ethan Buchman 2018-05-09 09:55:19 -04:00
parent f4b2750b4f
commit 077ffeb706
1 changed files with 8 additions and 0 deletions

View File

@ -63,6 +63,14 @@ The `Candidate` holds the current state and some historical
actions of validators or candidate-validators.
``` go
type CandidateStatus byte
const (
Bonded CandidateStatus = 0x01
Unbonded CandidateStatus = 0x02
Revoked CandidateStatus = 0x03
)
type Candidate struct {
Status CandidateStatus
ConsensusPubKey crypto.PubKey