MCPcopy Create free account
hub / github.com/tendermint/tendermint / ValidateBasic

Method ValidateBasic

config/config.go:1096–1105  ·  view source on GitHub ↗

ValidateBasic performs basic validation.

()

Source from the content-addressed store, hash-verified

1094
1095// ValidateBasic performs basic validation.
1096func (cfg *BlockSyncConfig) ValidateBasic() error {
1097 switch cfg.Version {
1098 case BlockSyncV0:
1099 return nil
1100 case BlockSyncV2:
1101 return errors.New("blocksync version v2 is no longer supported. Please use v0")
1102 default:
1103 return fmt.Errorf("unknown blocksync version %s", cfg.Version)
1104 }
1105}
1106
1107//-----------------------------------------------------------------------------
1108// ConsensusConfig

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected