mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-20 15:02:33 +00:00
Do not panic upon RoundStepType.String() for invalid type
This commit is contained in:
+1
-1
@@ -219,7 +219,7 @@ func (rs RoundStepType) String() string {
|
||||
case RoundStepCommit:
|
||||
return "RoundStepCommit"
|
||||
default:
|
||||
panic(Fmt("Unknown RoundStep %X", rs))
|
||||
return "RoundStepUnknown" // Cannot panic.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user