Browse Source

Do not panic upon RoundStepType.String() for invalid type

pull/102/head
Jae Kwon 10 years ago
parent
commit
3cd459b60c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consensus/state.go

+ 1
- 1
consensus/state.go View File

@ -219,7 +219,7 @@ func (rs RoundStepType) String() string {
case RoundStepCommit: case RoundStepCommit:
return "RoundStepCommit" return "RoundStepCommit"
default: default:
panic(Fmt("Unknown RoundStep %X", rs))
return "RoundStepUnknown" // Cannot panic.
} }
} }


Loading…
Cancel
Save