diff --git a/consensus/consensus_state.go b/consensus/consensus_state.go index 921a81cb9..700d3dd76 100644 --- a/consensus/consensus_state.go +++ b/consensus/consensus_state.go @@ -13,6 +13,10 @@ const ( COMMIT_DONE CHALLENGE_DONE RESPONSE_DONE + COLLECTIVE_SIG_DONE + FINAL_COMMIT_DONE + FINAL_CHALLENGE_DONE + FINAL_RESPONSE_DONE ) // Returns string name for the ConsensusState enum @@ -22,9 +26,13 @@ func (state ConsensusState) String() string { "ANNOUNCE_DONE", "COMMIT_DONE", "CHALLENGE_DONE", - "RESPONSE_DONE"} + "RESPONSE_DONE", + "COLLECTIVE_SIG_DONE", + "FINAL_COMMIT_DONE", + "FINAL_CHALLENGE_DONE", + "FINAL_RESPONSE_DONE"} - if state < FINISHED || state > RESPONSE_DONE { + if state < FINISHED || state > FINAL_RESPONSE_DONE { return "Unknown" } return names[state] diff --git a/proto/consensus/consensus.go b/proto/consensus/consensus.go index 8609018a3..51c7e43ee 100644 --- a/proto/consensus/consensus.go +++ b/proto/consensus/consensus.go @@ -88,6 +88,10 @@ const ( COMMIT CHALLENGE RESPONSE + COLLECTIVE_SIG + FINAL_COMMIT + FINAL_CHALLENGE + FINAL_RESPONSE START_CONSENSUS ) @@ -98,6 +102,10 @@ func (msgType MessageType) String() string { "COMMIT", "CHALLENGE", "RESPONSE", + "COLLECTIVE_SIG", + "FINAL_COMMIT", + "FINAL_CHALLENGE", + "FINAL_RESPONSE", "START_CONSENSUS", }