func (s *Service) GetConfig() ProofOfWorkConfig {
	cfg, err := s.repo.GetConfig()
	if err == nil {
		return *cfg
	}

	// @TODO: We should not do this i think
	return ProofOfWorkConfig{
		ProofOfWork: struct {
			Address      int `json:"address"`
			Organisation int `json:"organisation"`
		}{
			Address:      20,
			Organisation: 20,
		},
	}
}
// GetConfig returns the configuration from the given repo, or a default configuration on error
GetConfig returns the configuration from the given repo, or a default configuration on error
// GetConfig returns the configuration from the given repo or a default configuration on error
func (s *Service) GetConfig() ProofOfWorkConfig {
	cfg, err := s.repo.GetConfig()
	if err == nil {
		return *cfg
	}
	return ProofOfWorkConfig{
		ProofOfWork: struct {
			Address      int `json:"address"`
			Organisation int `json:"organisation"`
		}{
			Address:      20,
			Organisation: 20,
		},
	}
}
func ( s * Service ) GetConfig ( ) ProofOfWorkConfig { cfg , err := s . repo . GetConfig ( ) if err == nil { return * cfg } return ProofOfWorkConfig { ProofOfWork : struct { Address int `json:"address"` Organisation int `json:"organisation"` } { Address : 20 , Organisation : 20 , } , } }
GetConfig returns the configuration from the given repo, or a default configuration on error
GetConfig returns the configuration from the given repo or a default configuration on error
// @TODO: We should not do this i think