mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-30 19:51:58 +00:00
Do not panic upon RoundStepType.String() for invalid type
This commit is contained in:
@@ -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