ValidateBasic performs basic validation.
()
| 1094 | |
| 1095 | // ValidateBasic performs basic validation. |
| 1096 | func (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 |
nothing calls this directly
no outgoing calls
no test coverage detected