mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-20 06:01:31 +00:00
check against zero value for struct
This commit is contained in:
@@ -147,7 +147,7 @@ func (val *ValidatorParams) IsValidPubkeyType(pubkeyType string) bool {
|
||||
}
|
||||
|
||||
func (params *ConsensusParams) Complete() {
|
||||
if params.Synchrony.MessageDelay == 0 && params.Synchrony.Precision == 0 {
|
||||
if params.Synchrony == (SynchronyParams{}) {
|
||||
params.Synchrony = DefaultSynchronyParams()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user