From 077ffeb706c63a5103465d602d769a14b4332248 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 9 May 2018 09:55:19 -0400 Subject: [PATCH] spec: explicit CandidateStatus enum --- docs/spec/staking/state.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/spec/staking/state.md b/docs/spec/staking/state.md index 73ce1dde3a..2bcf13dea0 100644 --- a/docs/spec/staking/state.md +++ b/docs/spec/staking/state.md @@ -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